I have a model which has an imagefield. I have a modelform which uses this model and in case of editing, uses the instance to populate the form fields.
While the other fields (like charfield, textfield etc.) get populated with the instance values correctly, is there any way I can show the image corresponding to the instance in the edit form ? I thought the {{form.img.url}} would work, but it didnt. Also, what would be a good way to check if the uploaded image is same as the orignal image (if not, delete the earlier image before saving the instance else it will leave orphaned images). I am using S3 storage as the backend and the path attribute is not implemented for it. any ideas ? thanks, --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---