Skip to content

Commit e466aa9

Browse files
committed
fix: Do not imply correlation of get_author and get_modified_state
1 parent b42d781 commit e466aa9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

djangocms_alias/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ def get_queryset(self, request: HttpRequest) -> models.QuerySet:
8383

8484
def get_list_display(self, request: HttpRequest) -> Iterable[str]:
8585
list_display = super().get_list_display(request)
86+
list_display = list(list_display)
8687
if hasattr(self, "get_author"):
87-
list_display = list(list_display)
8888
list_display.insert(-1, "get_author")
89+
if hasattr(self, "get_modified_date"):
8990
list_display.insert(-1, "get_modified_date")
9091
return list_display
9192

0 commit comments

Comments
 (0)