diff --git a/backend/clubs/migrations/0117_clubapprovalresponsetemplate.py b/backend/clubs/migrations/0117_clubapprovalresponsetemplate.py index 64e296864..a6ab1a7ce 100644 --- a/backend/clubs/migrations/0117_clubapprovalresponsetemplate.py +++ b/backend/clubs/migrations/0117_clubapprovalresponsetemplate.py @@ -1,4 +1,4 @@ -# Generated by Django 5.0.4 on 2024-10-15 05:12 +# Generated by Django 5.0.4 on 2024-10-16 02:18 import django.db.models.deletion from django.conf import settings @@ -24,9 +24,9 @@ class Migration(migrations.Migration): verbose_name="ID", ), ), - ("title", models.CharField(max_length=255)), + ("title", models.CharField(max_length=255, unique=True)), ("content", models.TextField()), - ("created_at", models.DateTimeField(auto_now_add=True)), + ("created_at", models.DateTimeField(auto_now_add=True, db_index=True)), ("updated_at", models.DateTimeField(auto_now=True)), ( "author", diff --git a/backend/clubs/models.py b/backend/clubs/models.py index 4ff70142b..6329cb15a 100644 --- a/backend/clubs/models.py +++ b/backend/clubs/models.py @@ -2007,9 +2007,9 @@ class ClubApprovalResponseTemplate(models.Model): author = models.ForeignKey( get_user_model(), on_delete=models.SET_NULL, null=True, related_name="templates" ) - title = models.CharField(max_length=255) + title = models.CharField(max_length=255, unique=True) content = models.TextField() - created_at = models.DateTimeField(auto_now_add=True) + created_at = models.DateTimeField(auto_now_add=True, db_index=True) updated_at = models.DateTimeField(auto_now=True) def __str__(self): diff --git a/frontend/components/Settings/QueueTab.tsx b/frontend/components/Settings/QueueTab.tsx index cbed7bef1..e8e7a7faf 100644 --- a/frontend/components/Settings/QueueTab.tsx +++ b/frontend/components/Settings/QueueTab.tsx @@ -94,7 +94,7 @@ const QueueTableModal = ({ placeholder={`${isApproving ? 'approval' : 'rejection'} notes`} >