Skip to content

Commit

Permalink
minor updates courtesy of Avi and Julian
Browse files Browse the repository at this point in the history
  • Loading branch information
rm03 committed Oct 16, 2024
1 parent 4b30983 commit 3f606f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions backend/clubs/migrations/0117_clubapprovalresponsetemplate.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions backend/clubs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Settings/QueueTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const QueueTableModal = ({
placeholder={`${isApproving ? 'approval' : 'rejection'} notes`}
></textarea>
<button
className={`mb-2 button ${isApproving ? 'is-success' : 'is-danger'}`}
className={`mt-2 button ${isApproving ? 'is-success' : 'is-danger'}`}
onClick={() => {
closeModal()
bulkAction(comment)
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Settings/TemplatesTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function TemplatesTab({
name="title"
as={TextField}
required
helpText={`The title of the ${OBJECT_NAME_SINGULAR} approval response template. This will be shown in the template dropdown menu.`}
helpText={`The unique title of the ${OBJECT_NAME_SINGULAR} approval response template. This will be shown in the template dropdown menu.`}
/>
<Field name="content" as={TextField} type="textarea" required />
</>
Expand Down

0 comments on commit 3f606f3

Please sign in to comment.