#17951: Limit items in ModelChoiceField by default
-------------------------------+--------------------
Reporter: poirier | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: 1.3
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
I suggest that above some default number of items, a !ModelChoiceField
should automatically switch to raw_id_fields mode. There could be a new
parameter to change or remove the limit.
I've seen a couple of instances lately where a new Django admin page
mysteriously would not load, with CPU pegged, and it turned out the model
being admin'ed had a !ForeignKey to a table with millions of entries,
which turned into a !ModelChoiceField in the admin that tried to build a
widget with millions of items... it didn't work very well. This was the
default behavior, not a result of deliberately choosing to create a
ModelChoiceField on that big table.
--
Ticket URL: <https://code.djangoproject.com/ticket/17951>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.