Opened 14 years ago
Closed 14 years ago
#15104 closed (worksforme)
Django 1.2.4 removes support for lookups that span relationships in limit_choices_to
Reported by: | Niran Babalola | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 1.2 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Django 1.2.4 requires fields listed in limit_choices_to
to be present in list_filters
, but the latter doesn't support lookups that span relationships. A FieldDoesNotExist
exception is raised by db.models.Options.get_field
when the admin is trying to display the filter in the sidebar of the list view in admin.views.main.ChangeList.get_filters
.
Note:
See TracTickets
for help on using tickets.
list_filters
supports lookups that span relationships but there have been a couple of bug fixed since 1.2.4 got released. I'd like to ask you for two things:releases/1.2.X
SVN branch and verify if the issue you are seeing is still present.limit_choices_to
popup, thelimit_choices_to
dictionary can accept lookups that span relatinships).I won't accept nor close the ticket, leaving it subject to your feedback.