Commit 2b8c29c5 authored by OzzieIsaacs's avatar OzzieIsaacs

Further fix delete books (#119)

parent 9c679c89
......@@ -1302,6 +1302,7 @@ def delete_book(book_id):
for c in cc:
cc_string = "custom_column_" + str(c.id)
if not c.is_multiple:
if len(getattr(book, cc_string)) > 0:
if c.datatype == 'bool':
del_cc = getattr(book, cc_string)[0]
getattr(book, cc_string).remove(del_cc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment