mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-21 14:38:08 +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():
|
if not form.is_valid():
|
||||||
return redirect("lists")
|
return redirect("lists")
|
||||||
book_list = form.save()
|
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)
|
return redirect(book_list.local_path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue