Commit 73f7d346 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

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

Thanks poirier for the report.
parent b1155adc
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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