diff --git a/profiles/migrations/0003_alter_viewedcompany_unique_together.py b/profiles/migrations/0003_alter_viewedcompany_unique_together.py new file mode 100644 index 000000000..39d547c29 --- /dev/null +++ b/profiles/migrations/0003_alter_viewedcompany_unique_together.py @@ -0,0 +1,16 @@ +# Generated by Django 4.2.3 on 2023-10-27 11:01 + +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("profiles", "0002_alter_activity_name_alter_category_name"), + ] + + operations = [ + migrations.AlterUniqueTogether( + name="viewedcompany", + unique_together=set(), + ), + ] diff --git a/profiles/models.py b/profiles/models.py index 684d66103..cfae0ebb5 100644 --- a/profiles/models.py +++ b/profiles/models.py @@ -120,6 +120,3 @@ class ViewedCompany(models.Model): date = models.DateTimeField(auto_now_add=True) user = models.ForeignKey(CustomUser, on_delete=models.CASCADE) company = models.ForeignKey(Profile, on_delete=models.CASCADE) - - class Meta: - unique_together = (("user", "company"),)