diff --git a/backend/clubs/migrations/0118_alter_applicationcommittee_unique_together.py b/backend/clubs/migrations/0118_alter_applicationcommittee_unique_together.py new file mode 100644 index 000000000..54edd2f07 --- /dev/null +++ b/backend/clubs/migrations/0118_alter_applicationcommittee_unique_together.py @@ -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")}, + ), + ] diff --git a/backend/clubs/models.py b/backend/clubs/models.py index 22105c7a0..78d9c8128 100644 --- a/backend/clubs/models.py +++ b/backend/clubs/models.py @@ -1690,6 +1690,9 @@ def get_word_limit(self): def __str__(self): return "".format(self.name, self.application.pk) + class Meta: + unique_together = (("name", "application"),) + class ApplicationQuestion(CloneModel): """