[Bugfix] 修复创建/更新 Perms 时,名称重复不提示错误信息的问题 (#2272)

pull/2274/head^2
BaiJiangJie 2018-12-26 12:59:09 +08:00 committed by 老广
parent b9b8c35a81
commit 76a08c9039
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@
</div>
<div class="ibox-content">
<form method="post" class="form-horizontal" action="" >
{% if form.non_field_errors %}
<div class="alert alert-danger">
{{ form.non_field_errors }}
</div>
{% endif %}
{% csrf_token %}
<h3>{% trans 'Basic' %}</h3>
{% bootstrap_field form.name layout="horizontal" %}