diff options
| author | Paulo <commonzenpython@gmail.com> | 2017-06-04 14:10:48 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-05 10:29:54 -0400 |
| commit | b7f99f84bcc4a06114ac31174840efab0aef7602 (patch) | |
| tree | ddf8ccdc8e6c5227a16d03d5bd8d72f167cff7df /tests/admin_views/admin.py | |
| parent | a0f8c52ae2a9ac211742b4dd7b7e9777040b076c (diff) | |
Fixed #28262 -- Fixed incorrect DisallowedModelAdminLookup when a nested reverse relation is in list_filter.
Diffstat (limited to 'tests/admin_views/admin.py')
| -rw-r--r-- | tests/admin_views/admin.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/admin_views/admin.py b/tests/admin_views/admin.py index 24e6039f80..7c3190574c 100644 --- a/tests/admin_views/admin.py +++ b/tests/admin_views/admin.py @@ -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): |
