mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
Fix resolving var 'value', was missing 'field'
> Exception while resolving variable 'value' in template 'rest_framework/vertical/checkbox.html'. I checked all the other templates and this appears to be the only case of a missing 'field'.
This commit is contained in:
parent
f2d6013134
commit
73e7faa5db
|
@ -1,7 +1,7 @@
|
|||
<div class="form-group {% if field.errors %}has-error{% endif %}">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="{{ field.name }}" value="true" {% if value %}checked{% endif %}>
|
||||
<input type="checkbox" name="{{ field.name }}" value="true" {% if field.value %}checked{% endif %}>
|
||||
{% if field.label %}{{ field.label }}{% endif %}
|
||||
</label>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user