Fixed #17950 -- Warned about usability limits of ModelChoiceField.

Thanks poirier for the report.
This commit is contained in:
Aymeric Augustin 2012-05-10 22:01:11 +02:00
parent b1155adcde
commit 73f7d34699
1 changed files with 6 additions and 2 deletions

View File

@ -934,8 +934,12 @@ objects (in the case of ``ModelMultipleChoiceField``) into the
* Validates that the given id exists in the queryset.
* Error message keys: ``required``, ``invalid_choice``
Allows the selection of a single model object, suitable for
representing a foreign key. A single argument is required:
Allows the selection of a single model object, suitable for representing a
foreign key. Note that the default widget for ``ModelChoiceField`` becomes
impractical when the number of entries increases. You should avoid using it
for more than 100 items.
A single argument is required:
.. attribute:: queryset