Skip to content

Commit

Permalink
fix: restore admin get_list_display
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Yu committed Oct 23, 2024
1 parent ae234d4 commit 7ab9278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_content_expiry/monkeypatch/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_list_display(func):
def inner(self, request):
list_display = func(self, request)
created_by_index = list_display.index('created_by')
return list_display[:created_by_index] + ['compliance_number'] + list_display[created_by_index:]
return list_display[:created_by_index] + ('compliance_number',) + list_display[created_by_index:]

return inner

Expand Down

0 comments on commit 7ab9278

Please sign in to comment.