From 73f7d346997d9520ea672b4f311349d7ba8b9075 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Thu, 10 May 2012 22:01:11 +0200 Subject: [PATCH] Fixed #17950 -- Warned about usability limits of ModelChoiceField. Thanks poirier for the report. --- docs/ref/forms/fields.txt | 8 ++++++-- 1 file 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