1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #35173 -- Fixed ModelAdmin.lookup_allowed() for lookups on foreign keys when not included in ModelAdmin.list_filter.

Regression in f80669d2f5.

Thanks Sarah Boyce for the review.
This commit is contained in:
Hisham Mahmood
2024-02-15 06:29:49 +05:00
committed by GitHub
parent c783e7a3a0
commit 8db593de05
3 changed files with 30 additions and 12 deletions

View File

@@ -15,3 +15,8 @@ Bugfixes
* Fixed a bug in Django 5.0 that caused a crash of ``Signal.asend()`` and
``asend_robust()`` when all receivers were asynchronous functions
(:ticket:`35174`).
* Fixed a regression in Django 5.0.1 where :meth:`.ModelAdmin.lookup_allowed`
would prevent filtering against foreign keys using lookups like ``__isnull``
when the field was not included in :attr:`.ModelAdmin.list_filter`
(:ticket:`35173`).