Answer the question
In order to leave comments, you need to log in
How to add enctype to form tag?
I study.
Standard django admin panel, I
embed my form with file submission
{% extends "admin/change_form.html" %}
{% block field_sets %}
{{ block.super }}
how to add here (what was generated automatically) without type crutches
add
an unnecessary field in model ???
Need to completely rewrite the template or is there a standard way... <form method="post" id="post_form" novalidate>
enctype="multipart/form-data"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question