.
This commit is contained in:
@@ -404,6 +404,15 @@ class CidReportAnswerForm(ModelForm):
|
||||
model = CidReportAnswer
|
||||
fields = ["answer"]
|
||||
|
||||
widgets = {
|
||||
# "normal": RadioSelect(
|
||||
# choices=[(True, 'Yes'),
|
||||
# (False, 'No')])
|
||||
# "findings": TinyMCE(attrs={"cols": 80, "rows": 20}),
|
||||
# "mark_scheme": TinyMCE(attrs={"cols": 80, "rows": 30}),
|
||||
"answer": Textarea(attrs={"cols": 150, "rows": 30}),
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CidReportAnswerForm, self).__init__(*args, **kwargs)
|
||||
self.fields['answer'].required = False
|
||||
|
||||
Reference in New Issue
Block a user