Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

Thanks poirier for the report.
  • Loading branch information...
commit 73f7d346997d9520ea672b4f311349d7ba8b9075 1 parent b1155ad
@aaugustin aaugustin authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 docs/ref/forms/fields.txt
View
8 docs/ref/forms/fields.txt
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.