#13633: Add a widget_callback to forms, modelforms, etc
-------------------------------+--------------------------------------------
Reporter: russellm | Owner: nobody
Status: new | Milestone:
Component: Forms | Version: 1.2
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------+--------------------------------------------
Changes (by kenth):
* has_patch: 0 => 1
Comment:
I was bitten by the modelformset widget bug (#13095). My patch changes the
5 places where 'formfield_callback' is defaulted from the existing a
lambda functions to None. Then right before use, if 'formfield_callback'
is still None, set to the proper lambda function. No function signatures
change & much DRYer.
Kent
--
Ticket URL: <http://code.djangoproject.com/ticket/13633#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.