Skip to content

Commit

Permalink
Add back DB-level constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
aviupadhyayula committed Jan 29, 2025
1 parent a84c667 commit 92531c1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated by Django 5.0.4 on 2025-01-29 04:33

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("clubs", "0117_clubapprovalresponsetemplate"),
]

operations = [
migrations.AlterUniqueTogether(
name="applicationcommittee", unique_together={("name", "application")},
),
]
3 changes: 3 additions & 0 deletions backend/clubs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1690,6 +1690,9 @@ def get_word_limit(self):
def __str__(self):
return "<ApplicationCommittee: {} in {}>".format(self.name, self.application.pk)

class Meta:
unique_together = (("name", "application"),)


class ApplicationQuestion(CloneModel):
"""
Expand Down

0 comments on commit 92531c1

Please sign in to comment.