enable priors in atlas
This commit is contained in:
+22
-1
@@ -780,4 +780,25 @@ class QuestionSchemaForm(ModelForm):
|
||||
|
||||
widgets = {
|
||||
"schema": SvelteJSONEditorWidgetOverride(),
|
||||
}
|
||||
}
|
||||
|
||||
class PriorCaseForm(Form):
|
||||
|
||||
relation = CharField(max_length=255, required=True)
|
||||
|
||||
#def __init__(self, *args, **kwargs):
|
||||
# self.case_detail = kwargs.pop(
|
||||
# "case_detail"
|
||||
# ) # To get request.user. Do not use kwargs.pop('user', None) due to potential security hole
|
||||
|
||||
# super(PriorCaseForm, self).__init__(*args, **kwargs)
|
||||
|
||||
# prior_cases = self.case_detail.case.get_all_prior_cases()
|
||||
|
||||
# if not prior_cases:
|
||||
# prior_cases = Case.objects.none()
|
||||
|
||||
# self.fields["case"] = ChoiceField(
|
||||
# required=False,
|
||||
# # widget=Select(verbose_name="Series", is_stacked=False),
|
||||
# )
|
||||
Reference in New Issue
Block a user