work on case priors
This commit is contained in:
@@ -24,6 +24,7 @@ from atlas.models import (
|
||||
Case,
|
||||
CaseCollection,
|
||||
CaseDetail,
|
||||
CasePrior,
|
||||
CidReportAnswer,
|
||||
Differential,
|
||||
Finding,
|
||||
@@ -858,10 +859,19 @@ class QuestionSchemaForm(ModelForm):
|
||||
"schema": SvelteJSONEditorWidgetOverride(),
|
||||
}
|
||||
|
||||
#class ModelPriorCaseForm(ModelForm):
|
||||
# class Meta:
|
||||
# model = CasePrior
|
||||
# fields = ["case_detail", "prior_case", "relation_text", "prior_visibility"]
|
||||
|
||||
class PriorCaseForm(Form):
|
||||
|
||||
relation = CharField(max_length=255, required=True)
|
||||
|
||||
prior_visibility = CharField(max_length=2, required=True)
|
||||
|
||||
|
||||
|
||||
#def __init__(self, *args, **kwargs):
|
||||
# self.case_detail = kwargs.pop(
|
||||
# "case_detail"
|
||||
|
||||
Reference in New Issue
Block a user