mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Fixed #28262 -- Fixed incorrect DisallowedModelAdminLookup when a nested reverse relation is in list_filter.
This commit is contained in:
parent
a0f8c52ae2
commit
b7f99f84bc
5 changed files with 20 additions and 7 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue