From 4ea99d17639e6084e03ecca66c359b1b15427427 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 3 Oct 2021 09:06:06 +1100 Subject: [PATCH] don't assign a group when creating non-group curated lists same as updating a list but for if a user changes their mind about curation when initially creating a list. --- bookwyrm/views/list.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bookwyrm/views/list.py b/bookwyrm/views/list.py index 53f39b549..bed9ee9a4 100644 --- a/bookwyrm/views/list.py +++ b/bookwyrm/views/list.py @@ -61,6 +61,10 @@ class Lists(View): if not form.is_valid(): return redirect("lists") book_list = form.save() + # list should not have a group if it is not group curated + if not book_list.curation == "group": + book_list.group = None + book_list.save() return redirect(book_list.local_path)