Ensure generic forms allow file uploads

pull/2518/head
Tim Heap 2016-03-30 18:08:22 +11:00 zatwierdzone przez Matt Westcott
rodzic 852e2b87e8
commit 1b278e3df2
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -7,7 +7,7 @@
{% include "wagtailadmin/shared/header.html" with title=view.page_title icon=view.header_icon %}
<form action="{{ view.get_add_url }}" method="POST">
<form action="{{ view.get_add_url }}" method="POST"{% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
{% csrf_token %}
{% block hidden_fields %}

Wyświetl plik

@ -8,7 +8,7 @@
{% include "wagtailadmin/shared/header.html" with title=view.page_title subtitle=view.get_page_subtitle icon=view.header_icon %}
<div class="nice-padding">
<form action="{{ view.get_edit_url }}" method="POST">
<form action="{{ view.get_edit_url }}" method="POST"{% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
{% csrf_token %}
{% block hidden_fields %}