Auto now
This commit is contained in:
parent
c5e37e9fdb
commit
296a4fecc8
2 changed files with 8 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
__pycache__/
|
||||
*.py[cod]
|
||||
*.egg-info
|
||||
.ropeproject
|
||||
|
|
|
@ -16,7 +16,8 @@ class Client(models.Model):
|
|||
name = models.CharField(max_length=100, default='')
|
||||
client_id = 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='')
|
||||
|
||||
|
@ -107,7 +108,7 @@ class UserInfo(models.Model):
|
|||
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='')
|
||||
updated_at = models.DateTimeField()
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
|
Loading…
Reference in a new issue