Skip to content

Commit

Permalink
Merge pull request #3703 from sniegu/master
Browse files Browse the repository at this point in the history
Add missing csrf_token in AdminRenderer post form.
  • Loading branch information
xordoquy committed Jan 19, 2016
2 parents c2e9470 + 2faa7bc commit e7fbd26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rest_framework/templates/rest_framework/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ <h4 class="modal-title" id="myModalLabel">Create</h4>
<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>
Expand Down

0 comments on commit e7fbd26

Please sign in to comment.