working base site setup with gatekeeping working
This commit is contained in:
@@ -32,5 +32,10 @@ class ApiToken(models.Model):
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
last_used = models.DateTimeField(null=True, blank=True)
|
||||
|
||||
class Meta:
|
||||
indexes = [
|
||||
models.Index(fields=['user', 'key_prefix']),
|
||||
]
|
||||
|
||||
def __str__(self):
|
||||
return f'{self.user.username} - {self.label} ({self.key_prefix}...)'
|
||||
Reference in New Issue
Block a user