mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Fixed #19080 -- Fine-grained control over select_related in admin
This commit is contained in:
@@ -67,6 +67,11 @@ class ChordsBandAdmin(admin.ModelAdmin):
|
||||
list_filter = ['members']
|
||||
|
||||
|
||||
class InvitationAdmin(admin.ModelAdmin):
|
||||
list_display = ('band', 'player')
|
||||
list_select_related = ('player',)
|
||||
|
||||
|
||||
class DynamicListDisplayChildAdmin(admin.ModelAdmin):
|
||||
list_display = ('parent', 'name', 'age')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user