If you edit an item in admin, a files uploaded are displayed above the
input field.  But if the model form is loaded with an instance, the
form seems unaware that there may already be an uploaded file.  No
existing file is displayed and if the form is resaved, the uploaded
file link is lost.

Am populating the form like this: requestForm =
RequestForm(instance=comm)

Found a similar question here:
http://groups.google.com/group/django-users/browse_thread/thread/1ba9bd1ae11c4e1a/a0c865b9317626ac?lnk=gst&q=upload+file#a0c865b9317626ac
and here
http://groups.google.com/group/django-users/browse_thread/thread/b3de8d6ef3fd8da9/1271517128e75720?lnk=gst&q=upload+file#1271517128e75720
with now answers

A partial answer here:http://groups.google.com/group/django-users/
browse_thread/thread/14922dca454e3782/d3b370cc47fe9ca1?lnk=gst&q=upload
+file#d3b370cc47fe9ca1
To the effect that this behaviour is correct due to security issue. Is
that the case?

Have I missed something or is there a way around this without hard
coding the form?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to