#10239: Document modelform_factory
-------------------------------------+--------------------------------------
Reporter: ingenieroariel | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------+--------------------------------------
Changes (by fas):
* cc: [email protected] (added)
Comment:
I didn't know it is considered internal, I use it very often. The
formfield_callback to modify the form fields that are created for the
corresponding db fields is in many cases much more useful/easier than
defining the form field anew and pass all parameters explicitly (rather
than having them being drawn from the model). The documentation also
points out this shortcoming (Note box at
http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#overriding-
the-default-field-types-or-widgets.
Any chance of making this method public?
--
Ticket URL: <http://code.djangoproject.com/ticket/10239#comment:2>
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.