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
+1
View File
@@ -5,3 +5,4 @@ __pycache__
.vscode/
.DS_Store
rad/settings_local.py
venv
+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):
+1
View File
@@ -53,6 +53,7 @@ INSTALLED_APPS = [
"tagulous",
"dbbackup",
"rest_framework",
"tinymce",
]
MIDDLEWARE = [
+3 -1
View File
@@ -65,7 +65,9 @@ urlpatterns = [
path('api/', include(router.urls)),
path('api-auth/', include('rest_framework.urls'))
path('api-auth/', include('rest_framework.urls')),
path('tinymce/', include('tinymce.urls')),
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
+2 -1
View File
@@ -17,4 +17,5 @@ opencv-python
pydicom
django-dbbackup
django-hashedfilenamestorage
djangorestframework
djangorestframework
django-tinymce