Is it possible to change field type when saving a model to database? I have 
an ImageField and I want to put a button for choosing an image already 
uploaded. I know that ImageField acts like CharField when saving data to 
database but it uses multipart/form-data so it doesn't see POST data when 
converting the user data to a model. When I change the input type to text 
and append some strings to it ImageField doesn't change. I can do it with 
ModelAdmin.save_model by manipulating ImageField manually with POST data 
but I wonder if it's possible to do something like that in Field level.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9cbff78e-79c4-4b75-bec7-c94f8c26dc99%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to