mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-11 05:20:16 +02:00
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.
21 lines
479 B
Python
21 lines
479 B
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.10 on 2017-10-20 13:51
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('hrapplications', '0002_choices_for_questions'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='applicationquestion',
|
|
name='multi_select',
|
|
field=models.BooleanField(default=False),
|
|
),
|
|
]
|