Commit 72dd1157 authored by Serge S. Koval's avatar Serge S. Koval

Merge branch 'master' of github.com:mrjoes/flask-admin

parents ee65efc6 99ad93ad
......@@ -786,7 +786,7 @@ class ModelView(BaseModelView):
flash(gettext('Integrity error. %(message)s', message=exc.message), 'error')
return True
return super(BaseModelView, self).handle_view_exception(exc)
return super(ModelView, self).handle_view_exception(exc)
# Model handlers
def create_model(self, form):
......
......@@ -138,7 +138,7 @@
var $parentForm = $el.parent().closest('.inline-field');
if ($parentForm.length > 0) {
if ($parentForm.length > 0 && elID.indexOf($parentForm.attr('id')) !== 0) {
id = $parentForm.attr('id') + '-' + elID;
}
......
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