Fix file uploads (borken by missing enctype on form)
This commit is contained in:
parent
3d9424a1d5
commit
819bd20fdf
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
||||||
</h2>
|
</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% block pre %}{% endblock %}
|
{% block pre %}{% endblock %}
|
||||||
<form method="post">
|
<form method="post" enctype="multipart/form-data">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% if instance|adding %}<input hidden name="next" value="{{ request.path }}" />{% endif %}
|
{% if instance|adding %}<input hidden name="next" value="{{ request.path }}" />{% endif %}
|
||||||
{{ form }}
|
{{ form }}
|
||||||
|
|
Loading…
Reference in a new issue