mirror of https://github.com/snachodog/mybuddy.git
Change form to multipart to allow for image upload without admin
This commit is contained in:
parent
7479cc932f
commit
b2edd13c9f
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue