Add project name to API key
This commit is contained in:
parent
f2fd9616e5
commit
79ab9f5412
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ from api.helpers import generate_token
|
|||
class APIKey(Model):
|
||||
user = ForeignKey(User, on_delete=CASCADE)
|
||||
key = UUIDField(primary_key=True, default=uuid4, editable=False)
|
||||
project = CharField(max_length=64)
|
||||
|
||||
class Mailing(Model):
|
||||
uuid = UUIDField(primary_key=True, default=uuid4, editable=False)
|
||||
|
|
Loading…
Reference in a new issue