mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-17 13:46:35 +00:00
CASCADE group.user
Delete groups when group.user is deleted.
This commit is contained in:
parent
39e002ee13
commit
056150d583
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class Group(BookWyrmModel):
|
||||||
"""A group of users"""
|
"""A group of users"""
|
||||||
|
|
||||||
name = fields.CharField(max_length=100)
|
name = fields.CharField(max_length=100)
|
||||||
user = fields.ForeignKey("User", on_delete=models.PROTECT)
|
user = fields.ForeignKey("User", on_delete=models.CASCADE)
|
||||||
description = fields.TextField(blank=True, null=True)
|
description = fields.TextField(blank=True, null=True)
|
||||||
privacy = fields.PrivacyField()
|
privacy = fields.PrivacyField()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue