mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Switch to Enum (#3437)
This commit is contained in:
parent
2ad0fa11f8
commit
486a956f42
@ -13,6 +13,7 @@ import math
|
||||
import os
|
||||
import uuid
|
||||
from datetime import datetime, timedelta
|
||||
from enum import Enum
|
||||
from secrets import compare_digest
|
||||
|
||||
from django.apps import apps
|
||||
@ -1805,9 +1806,8 @@ class ColorTheme(models.Model):
|
||||
return False
|
||||
|
||||
|
||||
class VerificationMethod:
|
||||
class VerificationMethod(Enum):
|
||||
"""Class to hold method references."""
|
||||
|
||||
NONE = 0
|
||||
TOKEN = 1
|
||||
HMAC = 2
|
||||
|
Loading…
Reference in New Issue
Block a user