Lots of improvemnets
This commit is contained in:
+7
-1
@@ -150,6 +150,7 @@ class AnatomyQuestionForm(ModelForm):
|
||||
"region",
|
||||
"modality",
|
||||
"structure",
|
||||
"feedback",
|
||||
"examination",
|
||||
"body_part",
|
||||
"description",
|
||||
@@ -158,9 +159,14 @@ class AnatomyQuestionForm(ModelForm):
|
||||
|
||||
widgets = {
|
||||
"structure": autocomplete.ModelSelect2(url="atlas:structure-autocomplete"),
|
||||
"answer_help": TinyMCE(attrs={"cols": 80, "rows": 10}),
|
||||
"answer_help": TinyMCE(attrs={"cols": 80, "rows": 5}),
|
||||
"feedback": TinyMCE(attrs={"cols": 80, "rows": 5}),
|
||||
}
|
||||
|
||||
class AnatomyQuestionAnswerForm(ModelForm):
|
||||
class Meta:
|
||||
model = AnatomyQuestion
|
||||
fields = []
|
||||
|
||||
AnswerFormSet = inlineformset_factory(
|
||||
AnatomyQuestion,
|
||||
|
||||
Reference in New Issue
Block a user