From dc5b79779611a480bb3097306fe891a8ecaa5a55 Mon Sep 17 00:00:00 2001 From: Christof Dorner Date: Sat, 18 Feb 2023 19:33:25 +0100 Subject: [PATCH] Fix `SiteSettings.default_user_auth_group` FK on_delete value The migration uses `RESTRICT` instead of `PROTECT`, which is both more correct, but also those values need to be identical, otherwise Django thinks that there's a migration missing and will refuse to apply any new migrations. --- bookwyrm/models/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/models/site.py b/bookwyrm/models/site.py index e40609f367..35f007be21 100644 --- a/bookwyrm/models/site.py +++ b/bookwyrm/models/site.py @@ -72,7 +72,7 @@ class SiteSettings(SiteModel): invite_request_question = models.BooleanField(default=False) require_confirm_email = models.BooleanField(default=True) default_user_auth_group = models.ForeignKey( - auth_models.Group, null=True, blank=True, on_delete=models.PROTECT + auth_models.Group, null=True, blank=True, on_delete=models.RESTRICT ) invite_question_text = models.CharField(