On 6 Nov 2018, at 02:47, 'Ivan Anishchuk' via Django developers (Contributions to Django itself) <django-developers@googlegroups.com> wrote:
> How about some field that intelligently guesses the table size and looks > either like default select or like raw id field depending on that? Yes, that would be interesting. I implemented a manual version of this in a project: - I ran a script to count the number of instances of each model and put those with more than 100 or 1000 instances in a list - I wrote a custom ModelAdmin class that automatically added ForeignKeys to models in that list to raw_id_fields Best regards, -- Aymeric. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/EF75EAC1-229E-47B0-ABBB-9C45598D933F%40polytechnique.org. For more options, visit https://groups.google.com/d/optout.