.
This commit is contained in:
@@ -14,6 +14,7 @@ from django.forms import inlineformset_factory
|
||||
from atlas.models import (
|
||||
Case,
|
||||
CaseCollection,
|
||||
CidReportAnswer,
|
||||
Differential,
|
||||
Finding,
|
||||
Series,
|
||||
@@ -396,3 +397,12 @@ SeriesImageFormSet = inlineformset_factory(
|
||||
extra=0,
|
||||
max_num=2000,
|
||||
)
|
||||
|
||||
class CidReportAnswerForm(ModelForm):
|
||||
class Meta:
|
||||
model = CidReportAnswer
|
||||
fields = ["answer"]
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CidReportAnswerForm, self).__init__(*args, **kwargs)
|
||||
self.fields['answer'].required = False
|
||||
Reference in New Issue
Block a user