Extending Choices for Questions in hrapplications to Allow Multiselect (#911)

An additional field at the question level defines whether the choices for the question are multi-select or not. The template will render the choices with radio buttons or checkboxes depending on multi-select. Multiple selected choices are saved with a line break between them.
This commit is contained in:
phaynu
2017-10-24 23:35:19 -05:00
committed by Adarnof
parent c63464c4c9
commit f961db3130
5 changed files with 25 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ class ChoiceInline(admin.TabularInline):
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['title', 'help_text']}),
(None, {'fields': ['title', 'help_text', 'multi_select']}),
]
inlines = [ChoiceInline]