working base site setup with gatekeeping working

This commit is contained in:
2026-08-03 12:43:33 -05:00
parent 2764644d8b
commit 85e6241ad4
37 changed files with 1146 additions and 58 deletions
+5
View File
@@ -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}...)'