feat: Remove slug field from ResearchStudy model and update related references
This commit is contained in:
+1
-3
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user