feat: Remove slug field from ResearchStudy model and update related references

This commit is contained in:
Ross
2026-05-12 21:51:44 +01:00
parent c94d2fb1a7
commit 89e89cef73
10 changed files with 68 additions and 35 deletions
+1 -3
View File
@@ -26,7 +26,6 @@ class ResearchStudyForm(ModelForm):
model = ResearchStudy
fields = [
"name",
"slug",
"description",
"active",
"randomisation_mode",
@@ -48,7 +47,6 @@ class ResearchStudyForm(ModelForm):
Fieldset(
'Study Details',
'name',
'slug',
'description',
'active',
),
@@ -85,7 +83,7 @@ class ResearchStudyArmForm(ModelForm):
"required_previous_arm",
]
def __init__(self, study=None, *args, **kwargs):
def __init__(self, *args, study=None, **kwargs):
super().__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_method = 'post'