This commit is contained in:
juanifioren 2015-02-19 15:57:20 -03:00
commit e64612cc40
2 changed files with 24 additions and 23 deletions

View file

@ -86,28 +86,26 @@ class Token(models.Model):
class UserInfo(models.Model):
user = models.OneToOneField(User, primary_key=True)
given_name = models.CharField(max_length=255, default='')
family_name = models.CharField(max_length=255, default='')
middle_name = models.CharField(max_length=255, default='')
nickname = models.CharField(max_length=255, default='')
preferred_username = models.CharField(max_length=255, default='')
profile = models.URLField(default='')
picture = models.URLField(default='')
website = models.URLField(default='')
email_verified = models.BooleanField(default=False)
gender = models.CharField(max_length=100, default='')
birthdate = models.DateField(null=True)
zoneinfo = models.CharField(max_length=100, default='')
locale = models.CharField(max_length=100, default='')
phone_number = models.CharField(max_length=255, default='')
phone_number_verified = models.BooleanField(default=False)
address_formatted = models.CharField(max_length=255, default='')
address_street_address = models.CharField(max_length=255, default='')
address_locality = models.CharField(max_length=255, default='')
address_region = models.CharField(max_length=255, default='')
address_postal_code = models.CharField(max_length=255, default='')
address_country = models.CharField(max_length=255, default='')
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)
preferred_username = models.CharField(max_length=255, blank=True, null=True)
profile = models.URLField(default='', null=True, blank=True)
picture = models.URLField(default='', null=True, blank=True)
website = models.URLField(default='', null=True, blank=True)
email_verified = models.NullBooleanField(default=False)
locale = models.CharField(max_length=100, blank=True, null=True)
phone_number = models.CharField(max_length=255, blank=True, null=True)
phone_number_verified = models.NullBooleanField(default=False)
address_formatted = models.CharField(max_length=255, blank=True, null=True)
address_street_address = models.CharField(max_length=255, blank=True,
null=True)
address_locality = models.CharField(max_length=255, blank=True, null=True)
address_region = models.CharField(max_length=255, blank=True, null=True)
address_postal_code = models.CharField(max_length=255, blank=True,
null=True)
address_country = models.CharField(max_length=255, blank=True, null=True)
updated_at = models.DateTimeField(auto_now=True, null=True)
@property

View file

@ -18,6 +18,9 @@ setup(
url='http://github.com/juanifioren/django-oidc-provider',
author='Juan Ignacio Fiorentino',
author_email='juanifioren@gmail.com',
tests_require=[],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
@ -33,4 +36,4 @@ setup(
install_requires=[
'pyjwt==0.3.1',
],
)
)