Merge pull request #6 from jvazquez/code_changes

Auto now
This commit is contained in:
Jorge Omar Vázquez 2015-02-06 14:32:18 -03:00
commit 7792ff3450
2 changed files with 8 additions and 6 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
__pycache__/ __pycache__/
*.py[cod] *.py[cod]
*.egg-info *.egg-info
.ropeproject

View file

@ -16,7 +16,8 @@ class Client(models.Model):
name = models.CharField(max_length=100, default='') name = models.CharField(max_length=100, default='')
client_id = models.CharField(max_length=255, unique=True) client_id = models.CharField(max_length=255, unique=True)
client_secret = models.CharField(max_length=255, unique=True) client_secret = models.CharField(max_length=255, unique=True)
response_type = models.CharField(max_length=30, choices=RESPONSE_TYPE_CHOICES) response_type = models.CharField(max_length=30,
choices=RESPONSE_TYPE_CHOICES)
_redirect_uris = models.TextField(default='') _redirect_uris = models.TextField(default='')
@ -107,7 +108,7 @@ class UserInfo(models.Model):
address_region = models.CharField(max_length=255, default='') address_region = models.CharField(max_length=255, default='')
address_postal_code = models.CharField(max_length=255, default='') address_postal_code = models.CharField(max_length=255, default='')
address_country = models.CharField(max_length=255, default='') address_country = models.CharField(max_length=255, default='')
updated_at = models.DateTimeField() updated_at = models.DateTimeField(auto_now=True)
@property @property
def name(self): def name(self):