Skip to content

Commit

Permalink
Merge branch 'confirmation' into surgeryImplantWeight
Browse files Browse the repository at this point in the history
  • Loading branch information
k1o0 committed Jun 12, 2024
2 parents e50086a + d09d99e commit 4a7e378
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions alyx/actions/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,14 @@ class WaterTypeAdmin(BaseActionAdmin):
list_display_links = ('name',)


class SurgeryActionForm(BaseActionForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['implant_weight'].required = True


class SurgeryAdmin(BaseActionAdmin):
form = SurgeryActionForm
list_display = ['subject_l', 'date', 'users_l', 'procedures_l',
'narrative', 'projects', 'implant_weight']
list_select_related = ('subject',)
Expand Down

0 comments on commit 4a7e378

Please sign in to comment.