Skip to content

Commit

Permalink
fix: get_list_display error
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Yu committed Aug 27, 2024
1 parent 8d18942 commit ae234d4
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 ae234d4

Please sign in to comment.