We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9eb6ad5 + 89b425b commit fc7b821Copy full SHA for fc7b821
flask_admin/model/base.py
@@ -2144,7 +2144,7 @@ def edit_view(self):
2144
if '_add_another' in request.form:
2145
return redirect(self.get_url('.create_view', url=return_url))
2146
elif '_continue_editing' in request.form:
2147
- return redirect(request.url)
+ return redirect(self.get_url('.edit_view', id=self.get_pk_value(model)))
2148
else:
2149
# save button
2150
return redirect(self.get_save_return_url(model, is_created=False))
0 commit comments