From ae234d43a44639f82d58d0a765f2ceabdab9f754 Mon Sep 17 00:00:00 2001 From: Josh Yu Date: Tue, 27 Aug 2024 11:34:31 +0800 Subject: [PATCH] fix: `get_list_display` error --- djangocms_content_expiry/monkeypatch/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_content_expiry/monkeypatch/admin.py b/djangocms_content_expiry/monkeypatch/admin.py index fa65e20..d6dc15a 100644 --- a/djangocms_content_expiry/monkeypatch/admin.py +++ b/djangocms_content_expiry/monkeypatch/admin.py @@ -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