mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-05 14:58:43 +00:00
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.
This commit is contained in:
parent
680e547c8b
commit
4ea99d1763
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue