Fix file uploads (borken by missing enctype on form)

This commit is contained in:
Edgar P. Burkhart 2023-04-24 09:07:30 +02:00
parent 3d9424a1d5
commit 819bd20fdf
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -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 }}