Model definition changes
This commit is contained in:
parent
9b3b45e1b5
commit
c44309c540
1 changed files with 20 additions and 22 deletions
|
@ -86,28 +86,26 @@ class Token(models.Model):
|
||||||
class UserInfo(models.Model):
|
class UserInfo(models.Model):
|
||||||
|
|
||||||
user = models.OneToOneField(User, primary_key=True)
|
user = models.OneToOneField(User, primary_key=True)
|
||||||
|
given_name = models.CharField(max_length=255, blank=True, null=True)
|
||||||
given_name = models.CharField(max_length=255, default='')
|
family_name = models.CharField(max_length=255, blank=True, null=True)
|
||||||
family_name = models.CharField(max_length=255, default='')
|
middle_name = models.CharField(max_length=255, blank=True, null=True)
|
||||||
middle_name = models.CharField(max_length=255, default='')
|
nickname = models.CharField(max_length=255, blank=True, null=True)
|
||||||
nickname = models.CharField(max_length=255, default='')
|
preferred_username = models.CharField(max_length=255, blank=True, null=True)
|
||||||
preferred_username = models.CharField(max_length=255, default='')
|
profile = models.URLField(default='', null=True, blank=True)
|
||||||
profile = models.URLField(default='')
|
picture = models.URLField(default='', null=True, blank=True)
|
||||||
picture = models.URLField(default='')
|
website = models.URLField(default='', null=True, blank=True)
|
||||||
website = models.URLField(default='')
|
email_verified = models.NullBooleanField(default=False)
|
||||||
email_verified = models.BooleanField(default=False)
|
locale = models.CharField(max_length=100, blank=True, null=True)
|
||||||
gender = models.CharField(max_length=100, default='')
|
phone_number = models.CharField(max_length=255, blank=True, null=True)
|
||||||
birthdate = models.DateField(null=True)
|
phone_number_verified = models.NullBooleanField(default=False)
|
||||||
zoneinfo = models.CharField(max_length=100, default='')
|
address_formatted = models.CharField(max_length=255, blank=True, null=True)
|
||||||
locale = models.CharField(max_length=100, default='')
|
address_street_address = models.CharField(max_length=255, blank=True,
|
||||||
phone_number = models.CharField(max_length=255, default='')
|
null=True)
|
||||||
phone_number_verified = models.BooleanField(default=False)
|
address_locality = models.CharField(max_length=255, blank=True, null=True)
|
||||||
address_formatted = models.CharField(max_length=255, default='')
|
address_region = models.CharField(max_length=255, blank=True, null=True)
|
||||||
address_street_address = models.CharField(max_length=255, default='')
|
address_postal_code = models.CharField(max_length=255, blank=True,
|
||||||
address_locality = models.CharField(max_length=255, default='')
|
null=True)
|
||||||
address_region = models.CharField(max_length=255, default='')
|
address_country = models.CharField(max_length=255, blank=True, null=True)
|
||||||
address_postal_code = models.CharField(max_length=255, default='')
|
|
||||||
address_country = models.CharField(max_length=255, default='')
|
|
||||||
updated_at = models.DateTimeField(auto_now=True, null=True)
|
updated_at = models.DateTimeField(auto_now=True, null=True)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in a new issue