Skip to content

Commit

Permalink
Merge branch 'release/0.3.62' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Aug 16, 2024
2 parents 3b63e6f + e15e7fc commit 62fc325
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 @@ -86,7 +86,7 @@ def get_list_filter(self, request) -> tuple[str | Type[SimpleListFilter], ...]:
def get_list_display(self, request) -> tuple[str]:
"""Insert `site` after the first column"""
list_display = super().get_list_display(request)
if (self.user_may_view_other_sites(request)) and "site" not in list_display:
if self.user_may_view_other_sites(request) and "site" not in list_display:
list_display = (list_display[0],) + (self.site_code,) + tuple(list_display[1:])
elif "site" in list_display:
list_display = tuple(
Expand Down

0 comments on commit 62fc325

Please sign in to comment.