X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d5a6347a4687eff0f47e832407160bdec086bd75..52f5582c513e41f069f60b5e45b457dc17413166:/src/api/models.py?ds=inline 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)