#899: Formfield doesn't display default value
----------------------------------+-----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: reopened | Component: django.newforms
Version: SVN | Resolution:
Keywords: | Stage: Accepted
Has_patch: 1 | Needs_docs: 0
Needs_tests: 1 | Needs_better_patch: 0
----------------------------------+-----------------------------------------
Changes (by mtredinnick):
* stage: Ready for checkin => Accepted
Comment:
This looks like the right approach for newforms, but it needs tests before
it can be committed. Doesn't need to test every field, but it should show
how the functionality works for a couple of examples so that we can verify
we don't break it.
In particular, I would like to see that in the case of form_for_instance()
constructing the form, we don't use the default values, but, rather, use
the existing values from the instance attributes, whatever they may be. So
having tests for a form_for_model() and a form_for_instance() case would
be the minimu required here.
--
Ticket URL: <http://code.djangoproject.com/ticket/899#comment:7>
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
-~----------~----~----~----~------~----~------~--~---