diff --git a/backend/clubs/migrations/0096_delete_questionresponse.py b/backend/clubs/migrations/0096_delete_questionresponse.py new file mode 100644 index 000000000..eb383eff9 --- /dev/null +++ b/backend/clubs/migrations/0096_delete_questionresponse.py @@ -0,0 +1,16 @@ +# Generated by Django 5.0.2 on 2024-03-06 01:23 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("clubs", "0095_rm_field_add_count"), + ] + + operations = [ + migrations.DeleteModel( + name="QuestionResponse", + ), + ] diff --git a/backend/clubs/models.py b/backend/clubs/models.py index dcb6083f7..47c983c7a 100644 --- a/backend/clubs/models.py +++ b/backend/clubs/models.py @@ -329,9 +329,6 @@ class Club(models.Model): # cache club rankings rank = models.IntegerField(default=0) - # cache club rankings - rank = models.IntegerField(default=0) - created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) @@ -1776,15 +1773,6 @@ class Meta: unique_together = (("question", "submission"),) -class QuestionResponse(models.Model): - """ - Represents a response to a question on a custom application - """ - - question = models.ForeignKey(ApplicationQuestion, on_delete=models.CASCADE) - response = models.TextField(blank=True) - - @receiver(models.signals.pre_delete, sender=Asset) def asset_delete_cleanup(sender, instance, **kwargs): if instance.file: