Add choices to gender in UserInfo.
This commit is contained in:
parent
dd366479d4
commit
0df97dfb72
1 changed files with 6 additions and 1 deletions
|
@ -80,12 +80,17 @@ class Token(models.Model):
|
|||
|
||||
class UserInfo(models.Model):
|
||||
|
||||
GENDER_CHOICES = [
|
||||
('F', 'Female'),
|
||||
('M', 'Male'),
|
||||
]
|
||||
|
||||
user = models.OneToOneField(User, primary_key=True)
|
||||
given_name = models.CharField(max_length=255, blank=True, null=True)
|
||||
family_name = models.CharField(max_length=255, blank=True, null=True)
|
||||
middle_name = models.CharField(max_length=255, blank=True, null=True)
|
||||
nickname = models.CharField(max_length=255, blank=True, null=True)
|
||||
gender = models.CharField(max_length=100, default='', blank=True, null=True)
|
||||
gender = models.CharField(max_length=100, choices=GENDER_CHOICES, null=True)
|
||||
birthdate = models.DateField(null=True)
|
||||
zoneinfo = models.CharField(max_length=100, default='', blank=True,
|
||||
null=True)
|
||||
|
|
Loading…
Reference in a new issue