From 2cbfdbf6c336bb201804f4bdd6980728b42be9ba Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 16 Jul 2024 14:15:08 +0300 Subject: [PATCH] Inline add surgery implant weight validation --- alyx/alyx/__init__.py | 2 +- alyx/subjects/admin.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/alyx/alyx/__init__.py b/alyx/alyx/__init__.py index 63a4afcc..8a8fc681 100644 --- a/alyx/alyx/__init__.py +++ b/alyx/alyx/__init__.py @@ -1 +1 @@ -VERSION = __version__ = '3.0.1' +VERSION = __version__ = '3.0.2' diff --git a/alyx/subjects/admin.py b/alyx/subjects/admin.py index 7a8ab709..4a058574 100755 --- a/alyx/subjects/admin.py +++ b/alyx/subjects/admin.py @@ -20,6 +20,7 @@ ) from actions.models import ( Surgery, Session, OtherAction, WaterAdministration, WaterRestriction, Weighing) +from actions.admin import SurgeryActionForm from misc.models import LabMember, Housing from misc.admin import NoteInline @@ -234,6 +235,7 @@ def has_add_permission(self, request, obj=None): class AddSurgeryInline(SurgeryInline): + form = SurgeryActionForm readonly_fields = () show_change_link = False verbose_name = "New surgery"