Skip to content

Commit 6758236

Browse files
authored
Merge pull request #870 from cortex-lab/hotfix/3.0.2
Inline add surgery implant weight validation
2 parents e37450c + 2cbfdbf commit 6758236

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

alyx/alyx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = __version__ = '3.0.1'
1+
VERSION = __version__ = '3.0.2'

alyx/subjects/admin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
)
2121
from actions.models import (
2222
Surgery, Session, OtherAction, WaterAdministration, WaterRestriction, Weighing)
23+
from actions.admin import SurgeryActionForm
2324
from misc.models import LabMember, Housing
2425
from misc.admin import NoteInline
2526

@@ -234,6 +235,7 @@ def has_add_permission(self, request, obj=None):
234235

235236

236237
class AddSurgeryInline(SurgeryInline):
238+
form = SurgeryActionForm
237239
readonly_fields = ()
238240
show_change_link = False
239241
verbose_name = "New surgery"

0 commit comments

Comments
 (0)