altered book delete status to success, completed TODO-05 (books must be sold to be deleted - with tooltip to explain), and added new BUG-17 - changing some fields of parent book need to be reflected into sub book
This commit is contained in:
5
main.py
5
main.py
@@ -490,9 +490,8 @@ def book(id):
|
||||
st.SetMessage( "This is a parent book, cannot delete it without deleting sub books first" )
|
||||
return redirect( '/book/{}'.format(book.id) )
|
||||
else:
|
||||
st.SetAlert("warning")
|
||||
st.SetMessage("WARNING: Deleting being tested at present.<br>")
|
||||
st.AppendMessage("Deleted {}".format(book.title) )
|
||||
st.SetAlert("success")
|
||||
st.SetMessage("Deleted {}".format(book.title) )
|
||||
pid = 0
|
||||
if len(book.parent) > 0:
|
||||
pid = book.parent[0].id
|
||||
|
||||
Reference in New Issue
Block a user