Redirect to original page when creating new journal transaction
This commit is contained in:
parent
4bdb31c35e
commit
d67b2f4298
@ -64,7 +64,7 @@ def journal_new_transaction():
|
|||||||
db.session.add(transaction)
|
db.session.add(transaction)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
return redirect(url_for('journal'))
|
return redirect(request.form.get('referrer', '') or url_for('journal'))
|
||||||
|
|
||||||
@app.route('/journal/edit-transaction', methods=['GET', 'POST'])
|
@app.route('/journal/edit-transaction', methods=['GET', 'POST'])
|
||||||
def journal_edit_transaction():
|
def journal_edit_transaction():
|
||||||
|
Loading…
Reference in New Issue
Block a user