Code

Opened 2 years ago

Closed 2 years ago

#17950 closed Cleanup/optimization (fixed)

Document that ModelChoiceField is only useful when the number of items is relatively small

Reported by: poirier Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: smuss Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The response to ticket #15957 at https://code.djangoproject.com/ticket/15957#comment:1 says:

You shouldn't use ModelChoiceField for more than 1000 entries. Anyway, it becomes very quickly unusable beyond 100 entries.

It would be helpful if this were added to the ModelChoiceField documentation.

Attachments (1)

17950.diff (809 bytes) - added by smuss 2 years ago.
patch with documentation changes.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 2 years ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Bug to Cleanup/optimization
  • Version changed from 1.3 to SVN

comment:2 Changed 2 years ago by ptone

  • Easy pickings set

Changed 2 years ago by smuss

patch with documentation changes.

comment:3 Changed 2 years ago by smuss

  • Cc smuss added
  • Has patch set

comment:4 Changed 2 years ago by claudep

  • Triage Stage changed from Accepted to Ready for checkin

comment:5 Changed 2 years ago by Aymeric Augustin

  • Resolution set to fixed
  • Status changed from new to closed

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

Thanks poirier for the report.

Changeset: 73f7d346997d9520ea672b4f311349d7ba8b9075

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.