Skip to content

Commit

Permalink
add company (what) & remove company (who)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shushunya committed Oct 27, 2023
1 parent dd8e69f commit 966e17b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
16 changes: 16 additions & 0 deletions profiles/migrations/0003_alter_viewedcompany_unique_together.py
Original file line number Diff line number Diff line change
@@ -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(),
),
]
3 changes: 0 additions & 3 deletions profiles/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),)

0 comments on commit 966e17b

Please sign in to comment.