Change form to multipart to allow for image upload without admin

This commit is contained in:
Isaac Bythewood 2017-11-18 04:34:49 -05:00
parent 7479cc932f
commit b2edd13c9f
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{% load widget_tweaks %}
<div class="container-fluid">
<form role="form" method="post">
<form role="form" method="post" enctype="multipart/form-data">
{% csrf_token %}
{% if form.non_field_errors %}
{% for error in form.non_field_errors %}
@ -21,4 +21,4 @@
{% endfor %}
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>