mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.11.x] Fixed #28262 -- Fixed incorrect DisallowedModelAdminLookup when a nested reverse relation is in list_filter.
Backport of b7f99f84bc from master
			
			
This commit is contained in:
		| @@ -82,12 +82,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