Commit b6a5502c2a9152e64f2668d05fae53348382e53a
1 parent
cdfeb78f
Exists in
master
and in
5 other branches
Adding fields in model user #186
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
users/models.py
... | ... | @@ -21,10 +21,14 @@ class User(AbstractBaseUser, PermissionsMixin): |
21 | 21 | state = models.CharField(_('State'), max_length = 30, blank = True) |
22 | 22 | gender = models.CharField(_('Gender'), max_length = 1, choices = (('M', _('Male')), ('F', _('Female')))) |
23 | 23 | image = models.ImageField(verbose_name = _('Image'), blank = True, upload_to = 'users/') |
24 | - birth_date = models.DateField(_('Birth Date'), null = True, blank = True) | |
24 | + birth_date = models.DateField(_('Birth Date')) | |
25 | 25 | phone = models.CharField(_('Phone'), max_length = 30, blank = True) |
26 | 26 | cpf = models.CharField(_('Cpf'), max_length = 15, blank = True) |
27 | 27 | type_profile = models.IntegerField(_('Type'), null = True, blank = True, choices = ((1, _('Professor')), (2, _('Student'))), default=2) |
28 | + titration = models.CharField(_('Titration'), max_length = 50, blank = True, null = True) | |
29 | + year_titration = models.CharField(_('Year of titration'), max_length = 4, blank = True, null = True) | |
30 | + institution = models.CharField(_('Institution where he had titration'), max_length = 50, blank=True, null=True) | |
31 | + curriculum = models.FileField(verbose_name = _('Curriculum'), upload_to='users/curriculum/', null=True, blank=True) | |
28 | 32 | date_created = models.DateTimeField(_('Create Date'), auto_now_add = True) |
29 | 33 | is_staff = models.BooleanField(_('Administrador'), default = False) |
30 | 34 | is_active = models.BooleanField(_('Active'), default = True) | ... | ... |