Keep group as a foreign key field
This commit is contained in:
parent
9948dd2356
commit
801ba03aaf
2 changed files with 2 additions and 28 deletions
|
@ -43,8 +43,8 @@ class Notification(BookWyrmModel):
|
|||
related_users = models.ManyToManyField(
|
||||
"User", symmetrical=False, related_name="notifications"
|
||||
)
|
||||
related_groups = models.ManyToManyField(
|
||||
"Group", symmetrical=False, related_name="notifications"
|
||||
related_group = models.ForeignKey(
|
||||
"Group", on_delete=models.CASCADE, null=True, related_name="notifications"
|
||||
)
|
||||
related_status = models.ForeignKey("Status", on_delete=models.CASCADE, null=True)
|
||||
related_import = models.ForeignKey("ImportJob", on_delete=models.CASCADE, null=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue