Skip to content

Commit

Permalink
All admins to change default lab of users
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMadBug committed Sep 5, 2023
1 parent cecc874 commit 05c58e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snpdb/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class UserSettingsOverrideAdmin(ModelAdminBasics):
actions = ["export_as_csv"]

def is_readonly_field(self, f):
if f.name == 'default_genome_build':
if f.name in ('default_genome_build', 'default_lab'):
return False
return super().is_readonly_field(f)

Expand Down

0 comments on commit 05c58e1

Please sign in to comment.