Re: FileField in ModelForm gets required field error with valid entry

2008-10-02 Thread bobhaugen
Rajesh, Thanks a million. That advice got me almost all the way there. Needed one more twist, because the file url was unicode, so created this method: def file_url(self): return encoding.iri_to_uri(self.file.url) Now it all works. --~--~-~--~~~---~--~-

Re: FileField in ModelForm gets required field error with valid entry

2008-10-02 Thread Rajesh Dhawan
On Oct 2, 3:36 pm, bobhaugen <[EMAIL PROTECTED]> wrote: > Seehttp://dpaste.com/81988/ > > Ran some tests, FileFields work fine in admin. > > In a ModelForm, when I select a file with the Browse button, then > click the submit button, the FileField value disappears and I get a > required field er

FileField in ModelForm gets required field error with valid entry

2008-10-02 Thread bobhaugen
See http://dpaste.com/81988/ Ran some tests, FileFields work fine in admin. In a ModelForm, when I select a file with the Browse button, then click the submit button, the FileField value disappears and I get a required field error. Did a bunch of googling, ran into this: http://appengineguy.com