Re: inlineformset_factory ValidationError

2008-09-03 Thread Aaron
Thanks to justinf on #django for pointing out that I need to pass in request.FILES in my formset. If you're working with file fields (and image fields), the parameter is essential. Below is my current working view for future references. --

Re: inlineformset_factory ValidationError

2008-09-03 Thread Aaron
I figured it out. The problem was that I forgot to include {{ formset.management_form }} in my template. But now I have a new problem. After validation, the post gets saved but not the image. On Sep 2, 5:08 pm, Aaron <[EMAIL PROTECTED]> wrote: > Hi, has anyone encounter a similar error? > >

inlineformset_factory ValidationError

2008-09-02 Thread Aaron
Hi, has anyone encounter a similar error? ValidationError at /post/add/ [u'ManagementForm data is missing or has been tampered with'] I am able to display the inline form, but the error occurs when I try to pass the request.POST data into the PostImageFormSet Below is my view: ---