Commit 116f13bfc2eeb26a1474fb955c0ae401643bbd6f
1 parent
2a808bd8
Exists in
master
and in
5 other branches
Fixing bug on create category [Issue #414]
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
courses/templates/category/create.html
... | ... | @@ -19,7 +19,7 @@ |
19 | 19 | <label for="{{ field.auto_id }}">{{ field.label }}</label> |
20 | 20 | {% render_field field class='form-control input-sm' %} |
21 | 21 | </div> |
22 | - {% if field.errors.length > 0 %} | |
22 | + {% if field.errors%} | |
23 | 23 | <div class="alert alert-danger alert-dismissible" role="alert"> |
24 | 24 | <ul> |
25 | 25 | {% for error in field.errors %} | ... | ... |