hi,

using ModelForm for an ImageField, and following the documentation, I  
find that all the other data gets transferred to the form except the  
filename. The form loads with an error on the file input: 'this field  
is required'.

I get the instance = Photo.objects.get(pk=id)
and
form = Photoform(instance=instance)

There is no documentation at all regarding file/image fields in the  
ModelForm docs.
-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
Foss Conference for the common man: http://registration.fossconf.in/web/



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to