Created
September 3, 2017 12:22
-
-
Save lb-/36c0c0ae4df073a3bdc18444731d09ef to your computer and use it in GitHub Desktop.
Wagtail Forms - Upload Image Field - Add enctype to Form Page View
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base.html" %} | |
{% load wagtailcore_tags %} | |
{% block content %} | |
{{ self.intro }} | |
<form action="{% pageurl self %}" method="POST" enctype="multipart/form-data"> | |
{% csrf_token %} | |
{{ form.as_p }} | |
<input type="submit"> | |
</form> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment