mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	Fixed #17950 -- Warned about usability limits of ModelChoiceField.
Thanks poirier for the report.
This commit is contained in:
		| @@ -934,8 +934,12 @@ objects (in the case of ``ModelMultipleChoiceField``) into the | |||||||
|     * Validates that the given id exists in the queryset. |     * Validates that the given id exists in the queryset. | ||||||
|     * Error message keys: ``required``, ``invalid_choice`` |     * Error message keys: ``required``, ``invalid_choice`` | ||||||
|  |  | ||||||
|     Allows the selection of a single model object, suitable for |     Allows the selection of a single model object, suitable for representing a | ||||||
|     representing a foreign key.  A single argument is required: |     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 |     .. attribute:: queryset | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user