*: make generic template's base parameterised

This commit is contained in:
Jens Langhammer
2020-10-18 15:19:01 +02:00
parent 152b2d863d
commit 6a53069653
6 changed files with 6 additions and 6 deletions

View File

@ -309,7 +309,7 @@ class Token(ExpiringModel):
"""Token used to authenticate the User for API Access or confirm another Stage like Email."""
token_uuid = models.UUIDField(primary_key=True, editable=False, default=uuid4)
identifier = models.CharField(max_length=255)
identifier = models.SlugField(max_length=255)
key = models.TextField(default=default_token_key)
intent = models.TextField(
choices=TokenIntents.choices, default=TokenIntents.INTENT_VERIFICATION