#3297: newforms: Implement FileField and ImageField
---------------------------------------+------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: reopened | Component: django.newforms
Version: SVN | Resolution:
Keywords: newforms | Stage: Accepted
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
---------------------------------------+------------------------------------
Comment (by [EMAIL PROTECTED]):
django.newforms.models.save_instance() should ignore fields that are not
in the data. This will make it easy to make your own forms manually that
only handle some of the fields, then set the rest of the fields explicitly
in your view. For example the automatically filled in width and height
fields you can specify for a model ImageField should not be attempted to
be set since they will get set by some other code.
I will attach my updated patch that has these two if-statements added :P
--
Ticket URL: <http://code.djangoproject.com/ticket/3297#comment:30>
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
-~----------~----~----~----~------~----~------~--~---