mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #28262 -- Fixed incorrect DisallowedModelAdminLookup when a nested reverse relation is in list_filter.
This commit is contained in:
@@ -79,12 +79,15 @@ class ChapterInline(admin.TabularInline):
|
||||
|
||||
|
||||
class ChapterXtra1Admin(admin.ModelAdmin):
|
||||
list_filter = ('chap',
|
||||
'chap__title',
|
||||
'chap__book',
|
||||
'chap__book__name',
|
||||
'chap__book__promo',
|
||||
'chap__book__promo__name',)
|
||||
list_filter = (
|
||||
'chap',
|
||||
'chap__title',
|
||||
'chap__book',
|
||||
'chap__book__name',
|
||||
'chap__book__promo',
|
||||
'chap__book__promo__name',
|
||||
'guest_author__promo__book',
|
||||
)
|
||||
|
||||
|
||||
class ArticleAdmin(admin.ModelAdmin):
|
||||
|
||||
Reference in New Issue
Block a user