remove the code to deal with moving books in series, its better placed where we draw the books in the series anyway - in main.py
This commit is contained in:
@@ -56,12 +56,6 @@ def series(id):
|
|||||||
### DDP: should this be request.form or request.values?
|
### DDP: should this be request.form or request.values?
|
||||||
alert="Success"
|
alert="Success"
|
||||||
series_form = SeriesForm(request.form)
|
series_form = SeriesForm(request.form)
|
||||||
if request.method == 'POST':
|
|
||||||
if 'move_button' in request.form:
|
|
||||||
print( 'maybe we are moving a book up or down in series, we pressed: ' + request.form['move_button'] )
|
|
||||||
dir, id = request.form['move_button'].split('-')
|
|
||||||
print( "dir="+dir)
|
|
||||||
print( "id="+id)
|
|
||||||
if request.method == 'POST' and series_form.validate_on_submit():
|
if request.method == 'POST' and series_form.validate_on_submit():
|
||||||
id = request.form['id']
|
id = request.form['id']
|
||||||
series = Series.query.get(id)
|
series = Series.query.get(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user