diff --git a/users/migrations/0005_auto_20161021_1131.py b/users/migrations/0005_auto_20161021_1131.py new file mode 100644 index 0000000..a750fd5 --- /dev/null +++ b/users/migrations/0005_auto_20161021_1131.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10 on 2016-10-21 14:31 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('users', '0004_auto_20161021_0820'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='birth_date', + field=models.DateField(null=True, verbose_name='Birth Date'), + ), + ] diff --git a/users/models.py b/users/models.py index cfb730b..4782ce4 100644 --- a/users/models.py +++ b/users/models.py @@ -21,7 +21,7 @@ class User(AbstractBaseUser, PermissionsMixin): state = models.CharField(_('State'), max_length = 30, blank = True) gender = models.CharField(_('Gender'), max_length = 1, choices = (('M', _('Male')), ('F', _('Female')))) image = models.ImageField(verbose_name = _('Image'), blank = True, upload_to = 'users/') - birth_date = models.DateField(_('Birth Date')) + birth_date = models.DateField(_('Birth Date'), null=True) phone = models.CharField(_('Phone'), max_length = 30, blank = True) cpf = models.CharField(_('Cpf'), max_length = 15, blank = True) type_profile = models.IntegerField(_('Type'), null = True, blank = True, choices = ((1, _('Professor')), (2, _('Student'))), default=2) -- libgit2 0.21.2