X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ca8f4e8fef80cb603117ed579da8554f503698e5..b6d44713f806e7186589da45d7622123a9c36a60:/src/api/models.py?ds=sidebyside diff --git a/src/api/models.py b/src/api/models.py index ff1f09a0d..4f0556561 100644 --- a/src/api/models.py +++ b/src/api/models.py @@ -101,7 +101,12 @@ class Consumer(models.Model): class Token(models.Model): REQUEST = 1 ACCESS = 2 - TOKEN_TYPES = ((REQUEST, 'Request'), (ACCESS, 'Access')) + REFRESH = 3 + TOKEN_TYPES = ( + (REQUEST, 'Request'), + (ACCESS, 'Access'), + (REFRESH, 'Refresh') + ) key = models.CharField(max_length=KEY_SIZE) secret = models.CharField(max_length=SECRET_SIZE)