Question admin
question.admin:
QuestionGroupAdmin
Bases: ModelAdmin
Source code in question/admin.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
|
get_form(request, obj=None, **kwargs)
This method is needed because setting the QuestionGroup.questions field as readonly for built-in (i.e., not editable) groups shows the questions as one-line of concatenated strings, which is ugly. Instead, this method allows to keep the checkboxes, but disabled
Source code in question/admin.py
69 70 71 72 73 74 75 76 77 78 79 |
|