mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-07 22:04:48 +03:00
Merge 855ba981c0
into 5aa204e94f
This commit is contained in:
commit
fa76df6b58
|
@ -18,7 +18,7 @@ class Token(models.Model):
|
||||||
"""
|
"""
|
||||||
The default authorization token model.
|
The default authorization token model.
|
||||||
"""
|
"""
|
||||||
key = models.CharField(max_length=40, primary_key=True)
|
key = models.CharField(max_length=300, primary_key=True)
|
||||||
user = models.OneToOneField(AUTH_USER_MODEL, related_name='auth_token')
|
user = models.OneToOneField(AUTH_USER_MODEL, related_name='auth_token')
|
||||||
created = models.DateTimeField(auto_now_add=True)
|
created = models.DateTimeField(auto_now_add=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user