Skip to content

Commit

Permalink
fix list display
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jul 2, 2024
1 parent 708f5b4 commit 12e9811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edc_sites/admin/site_model_admin_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_list_display(self, request) -> tuple[str]:
if (
self.user_may_view_other_sites or sites.user_may_view_other_sites(request)
) and "site" not in list_display:
list_display = (list_display[0],) + (self.site_code,) + list_display[1:]
list_display = (list_display[0],) + (self.site_code,) + tuple(list_display[1:])
elif "site" in list_display:
list_display = tuple(
[x for x in list_display if x not in ["site", self.site_code]]
Expand Down

0 comments on commit 12e9811

Please sign in to comment.