Opened 5 years ago

Closed 5 years ago

#30007 closed Bug (duplicate)

ForeignKey's limit_choices_to attribute is ignored when autocomplete view builds queryset.

Reported by: Mehdi Pourfar Owned by: nobody
Component: contrib.admin Version: 2.1
Severity: Normal Keywords: admin, autocomplete, limit_choices_to
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When I set limit_choices_to on a ForeignKey field, and set my admin model to use autocomplete for that field, my limit_choices_to is ignored in autocomplete results.

Change History (1)

comment:1 by Simon Charette, 5 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #29707.

Note: See TracTickets for help on using tickets.
Back to Top