mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 21:40:13 +03:00
change token max_length to 300
Sometimes I want to use my own token as auth token here. For example, the token from facebook. But the length of facebook token is 250+, can you change the length to 300 to make it general? 40 is too small.
This commit is contained in:
parent
5aa204e94f
commit
855ba981c0
|
@ -18,7 +18,7 @@ class Token(models.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')
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user