Adds a management command that generates views, forms, urls, admin, and templates based off the contents of models.py
BSD 3-Clause "New" or "Revised" License
389
stars
51
forks
source link
The automatically created forms don't understand how to handle file uploads. #27
Open
opencoca opened 3 years ago
Forms should use
enctype="multipart/form-data"
if files are in the model.Alternatively, forms could always use
enctype="multipart/form-data"
and developers could comment it out if they needed increased efficiency.Example of form with working file uploads:
<form enctype="multipart/form-data" method="post" action="/foo/">