rename CidUserAnswer to UserAnswer
This commit is contained in:
+4
-4
@@ -12,7 +12,7 @@ from generic.forms import ExamAuthorFormMixin, ExamFormMixin
|
||||
|
||||
from .models import (
|
||||
Question,
|
||||
CidUserAnswer,
|
||||
UserAnswer,
|
||||
Exam,
|
||||
Category
|
||||
)
|
||||
@@ -23,13 +23,13 @@ from django.forms.widgets import RadioSelect, TextInput, Textarea
|
||||
from tinymce.widgets import TinyMCE
|
||||
|
||||
|
||||
class CidUserAnswerForm(ModelForm):
|
||||
class UserAnswerForm(ModelForm):
|
||||
class Meta:
|
||||
model = CidUserAnswer
|
||||
model = UserAnswer
|
||||
fields = ["answer"]
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CidUserAnswerForm, self).__init__(*args, **kwargs)
|
||||
super(UserAnswerForm, self).__init__(*args, **kwargs)
|
||||
self.fields['answer'].required = False
|
||||
|
||||
# This should be made generic?
|
||||
|
||||
Reference in New Issue
Block a user