#3297: newforms: Implement FileField and ImageField
---------------------------------------+------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: reopened | Component: django.newforms
Version: SVN | Resolution:
Keywords: newforms | Stage: Design decision
needed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
---------------------------------------+------------------------------------
Comment (by [EMAIL PROTECTED]):
Can confirm the patch works -- after much headscratching: Don't forget to
pass FILES to the 'form-factory':
Here's how I got it to work:
{{{
ImageForm = forms.models.form_for_model(Image)
request.POST.update(request.FILES)
f = ImageForm(request.POST)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/3297#comment:47>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---