Added integer-field to supported custom colums

This commit is contained in:
OzzieIsaacs
2017-05-25 08:20:19 +02:00
parent 3acf80c42b
commit 1366b36c32
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1313,7 +1313,7 @@ def delete_book(book_id):
cc_string = "custom_column_" + str(c.id)
if not c.is_multiple:
if len(getattr(book, cc_string)) > 0:
if c.datatype == 'bool':
if c.datatype == 'bool' or c.datatype == 'integer':
del_cc = getattr(book, cc_string)[0]
getattr(book, cc_string).remove(del_cc)
db.session.delete(del_cc)