#12392: Create_object generic view does not provide a way to pre-populate a form
-------------------------------------------------+--------------------------
Reporter: [email protected] | Owner: nobody
Status: new | Milestone:
Component: Generic views | Version: SVN
Resolution: | Keywords:
pre-populate, generic, view, dictionary
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------------+--------------------------
Comment (by Stewart <[email protected]>):
A class-based approach would definitely work. To me it seems like a more
sensible way of tackling generic views. However #6735 seems to
specifically relate to list views where is this issue focuses around the
create and update generic views. In a class-based approach ideally this
could take an instance of the ModelForm. That way you could perform any
operations on the instance that are needed such as binding data. That
would definitely solve the issue and make generic views much simpler for
displaying forms with pre-populated data.
--
Ticket URL: <http://code.djangoproject.com/ticket/12392#comment:3>
Django <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.