DisallowedModelAdminLookup raised when filtering with __isnull on a ForeignKey not listed in list_filters
A regression in Django 5.0 was previously reported and fixed, relating to filtering foreign keys in django-admin in the URL, when not manually declared in list_filters:
https://code.djangoproject.com/ticket/35087
There is at least one more issue I'm still having, that is still problematic in Django 5.0.2:
Filtering by whether or not a foreign key value is set also used to work for any foreign key on the model.
/admin/core/invoice/?client__isnull=True
In Django 5.0.2 this provides an error similar to the error reported in 35087.
Change History
(10)
Cc: |
Sarah Boyce added
|
Component: |
Uncategorized → contrib.admin
|
Severity: |
Normal → Release blocker
|
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Uncategorized → Bug
|
Owner: |
changed from nobody to Hisham Mahmood
|
Status: |
new → assigned
|
Has patch: |
set
|
Needs documentation: |
set
|
Needs documentation: |
unset
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Triage Stage: |
Accepted → Ready for checkin
|
Thanks for the report.
Regression in f80669d2f5a5f1db9e9b73ca893fefba34f955e7 (Django 5.0.1)