#35173: DisallowedModelAdminLookup raised when filtering with __isnull on a ForeignKey not listed in list_filters -----------------------------------------+------------------------ Reporter: Stian Jensen | Owner: nobody Type: Uncategorized | Status: new Component: Uncategorized | Version: 5.0 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -----------------------------------------+------------------------ 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. -- Ticket URL: <https://code.djangoproject.com/ticket/35173> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018d831ec465-dd5ef578-1288-4498-a3f6-bd9a6e7d8982-000000%40eu-central-1.amazonses.com.