mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
A little tricky change
Also unchecked field can be updated.
This commit is contained in:
parent
1823662e1e
commit
f4157ccb9d
|
@ -6,6 +6,7 @@
|
|||
{% endif %}
|
||||
|
||||
<div class="col-sm-10">
|
||||
<input type="hidden" name="{{ field.name }}" value="false">
|
||||
<input type="checkbox" name="{{ field.name }}" value="true" {% if field.value %}checked{% endif %}>
|
||||
|
||||
{% if field.errors %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user