diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-05-10 22:01:11 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-05-10 22:01:11 +0200 |
| commit | 73f7d346997d9520ea672b4f311349d7ba8b9075 (patch) | |
| tree | d057ed1f5a1ed2688c0ef032632c6f98007e6e5e /docs | |
| parent | b1155adcde0282a533a5ad1d7220adbd52011230 (diff) | |
Fixed #17950 -- Warned about usability limits of ModelChoiceField.
Thanks poirier for the report.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/forms/fields.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 0da891ec4b..6e7d85f586 100644 --- a/docs/ref/forms/fields.txt +++ b/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 |
