Is it possible to render a TextField in the Django admin, as a file upload widget and set the TextField‘s content to the content of said uploaded file?
Bonus points if it’s possible to have both.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A widget renders form elements. I would just use the Django Admin’s save_model(). Something like this (untested):