mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Fixed #24851 -- Fixed crash with reverse one-to-one relation in ModelAdmin.list_display
Forwardport of 2456276b02 from stable/1.8.x
This commit is contained in:
@@ -107,7 +107,7 @@ site.register(Parent, NoListDisplayLinksParentAdmin)
|
||||
|
||||
class SwallowAdmin(admin.ModelAdmin):
|
||||
actions = None # prevent ['action_checkbox'] + list(list_display)
|
||||
list_display = ('origin', 'load', 'speed')
|
||||
list_display = ('origin', 'load', 'speed', 'swallowonetoone')
|
||||
|
||||
site.register(Swallow, SwallowAdmin)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user