Commit f20de416 authored by Serge S. Koval's avatar Serge S. Koval

Fixed create and continue button

parent d3af9d0c
......@@ -343,7 +343,7 @@ class BaseModelView(BaseView, ActionsMixin):
list of possible options.
Example::
from wtforms.validators import required
class MyModelView(BaseModelView):
form_args = dict(
......@@ -1307,7 +1307,7 @@ class BaseModelView(BaseView, ActionsMixin):
if self.create_model(form):
if '_add_another' in request.form:
flash(gettext('Model was successfully created.'))
return redirect(self._get_create_url(url=return_url))
return redirect(request.url)
else:
return redirect(return_url)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment