diff --git a/ideascube/migrations/0014_user_disabilities.py b/ideascube/migrations/0014_user_disabilities.py new file mode 100644 index 0000000000000000000000000000000000000000..a8f429439378cfe6384fc7990a18cac824ccd54c --- /dev/null +++ b/ideascube/migrations/0014_user_disabilities.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.2 on 2016-10-29 13:51 +from __future__ import unicode_literals + +from django.db import migrations +import ideascube.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('ideascube', '0013_auto_20161028_1044'), + ] + + operations = [ + migrations.AddField( + model_name='user', + name='disabilities', + field=ideascube.fields.CommaSeparatedCharField(blank=True, choices=[('visual', 'Visual'), ('auditive', 'Auditive'), ('physical', 'Physical'), ('cognitive', 'Cognitive'), ('mental', 'Mental')], max_length=128, verbose_name='Disabilities'), + ), + ] diff --git a/ideascube/models.py b/ideascube/models.py index 9a39b12f6f3b8dca31f3ff2b1a5b4562adfcfea0..3eb01c330f6f94e37d8c6c9b85a1d6f5d1ca9785 100644 --- a/ideascube/models.py +++ b/ideascube/models.py @@ -237,6 +237,14 @@ class User(SearchMixin, TimeStampedModel, AbstractBaseUser): ('female', _('Female')), ) + DISABILITY_CHOICES = ( + ('visual', _('Visual')), + ('auditive', _('Auditive')), + ('physical', _('Physical')), + ('cognitive', _('Cognitive')), + ('mental', _('Mental')), + ) + latin_name = models.CharField(verbose_name=_('Latin written name'), max_length=200, blank=True) @@ -293,6 +301,9 @@ class User(SearchMixin, TimeStampedModel, AbstractBaseUser): blank=True) camp_address = models.CharField(verbose_name=_('Address in the camp'), max_length=200, blank=True) + disabilities = CommaSeparatedCharField( + verbose_name=_('Disabilities'), max_length=128, + choices=DISABILITY_CHOICES, blank=True) phone = models.CharField( verbose_name=_('Phone number (use comma to register more than one)'), max_length=200, blank=True, null=True)