[Django] #30007: ForeignKey's limit_choices_to attribute is ignored when autocomplete view builds queryset.

2 views
Skip to first unread message

Django

unread,
Dec 4, 2018, 11:17:17 AM12/4/18
to django-...@googlegroups.com
#30007: ForeignKey's limit_choices_to attribute is ignored when autocomplete view
builds queryset.
-------------------------------------+-------------------------------------
Reporter: Mehdi | Owner: nobody
Pourfar |
Type: Bug | Status: new
Component: | Version: 2.1
contrib.admin | Keywords: admin,
Severity: Normal | autocomplete, limit_choices_to
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/30007>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 4, 2018, 11:43:31 AM12/4/18
to django-...@googlegroups.com
#30007: ForeignKey's limit_choices_to attribute is ignored when autocomplete view
builds queryset.
-------------------------------------+-------------------------------------
Reporter: Mehdi Pourfar | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 2.1
Severity: Normal | Resolution: duplicate
Keywords: admin, | Triage Stage:
autocomplete, limit_choices_to | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

* status: new => closed
* resolution: => duplicate


Comment:

Duplicate of #29707.

--
Ticket URL: <https://code.djangoproject.com/ticket/30007#comment:1>

Reply all
Reply to author
Forward
0 new messages