This commit is contained in:
Ross
2021-07-26 10:37:39 +01:00
parent f16e5b7c5c
commit 593b5f2361
5 changed files with 11 additions and 2 deletions
+4
View File
@@ -27,6 +27,9 @@ from generic.models import Examination, Condition, Sign
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.forms.widgets import RadioSelect, TextInput, Textarea
from tinymce.widgets import TinyMCE
class LongAnswerForm(ModelForm):
class Meta:
@@ -149,6 +152,7 @@ class LongForm(ModelForm):
# "normal": RadioSelect(
# choices=[(True, 'Yes'),
# (False, 'No')])
"mark_scheme" : TinyMCE(attrs={'cols': 80, 'rows': 30})
}
def save(self, commit=True):