From b6a5502c2a9152e64f2668d05fae53348382e53a Mon Sep 17 00:00:00 2001 From: ailsoncgt Date: Fri, 21 Oct 2016 10:04:56 -0300 Subject: [PATCH] Adding fields in model user #186 --- users/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/users/models.py b/users/models.py index 6ee6e4a..cfb730b 100644 --- a/users/models.py +++ b/users/models.py @@ -21,10 +21,14 @@ 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'), null = True, blank = True) + birth_date = models.DateField(_('Birth Date')) 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) + titration = models.CharField(_('Titration'), max_length = 50, blank = True, null = True) + year_titration = models.CharField(_('Year of titration'), max_length = 4, blank = True, null = True) + institution = models.CharField(_('Institution where he had titration'), max_length = 50, blank=True, null=True) + curriculum = models.FileField(verbose_name = _('Curriculum'), upload_to='users/curriculum/', null=True, blank=True) date_created = models.DateTimeField(_('Create Date'), auto_now_add = True) is_staff = models.BooleanField(_('Administrador'), default = False) is_active = models.BooleanField(_('Active'), default = True) -- libgit2 0.21.2