Skip to content

Commit b1903d5

Browse files
committed
Updated get_list_display to enable tuple editing
1 parent 0c12621 commit b1903d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

djangocms_snippet/admin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ class Meta:
4747

4848
def get_list_display(self, request):
4949
list_display = super().get_list_display(request)
50+
list_display = list(list_display)
51+
5052
if not djangocms_versioning_enabled:
51-
list_display.append('slug')
53+
list_display.insert(0, 'slug')
54+
list_display = tuple(list_display)
5255
return list_display
5356

5457
def get_search_fields(self, request):

0 commit comments

Comments
 (0)