mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +03:00
Add missing csrf_token in AdminRenderer post form.
This commit is contained in:
parent
9f74b8860e
commit
2faa7bc288
|
@ -166,6 +166,7 @@
|
|||
<form action="{{ request.get_full_path }}" method="POST" enctype="multipart/form-data" class="form-horizontal" novalidate>
|
||||
<div class="modal-body">
|
||||
<fieldset>
|
||||
{% csrf_token %}
|
||||
{{ post_form }}
|
||||
</fieldset>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user