Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def create(self, *args, **kwargs):
raise ValueError("Cannot add more service tokens to this app.")
return super().create(*args, **kwargs)


# Deprecated Legacy App-linked Service Tokens
class ServiceToken(models.Model):
id = models.TextField(default=uuid4, primary_key=True, editable=False)
app = models.ForeignKey(App, on_delete=models.CASCADE)
Expand Down Expand Up @@ -569,7 +569,7 @@ class ServiceAccountToken(models.Model):
created_at = models.DateTimeField(auto_now_add=True, blank=True, null=True)
updated_at = models.DateTimeField(auto_now=True)
deleted_at = models.DateTimeField(blank=True, null=True)
expires_at = models.DateTimeField(null=True)
expires_at = models.DateTimeField(null=True, blank=True)

def clean(self):
# Ensure only one of created_by or created_by_service_account is set
Expand Down