#13095: modelform_factory, modelformset_factory, inlineformset_factory
formfield_callback lamba function missing **kwargs
-------------------------------+--------------------------------------------
          Reporter:  hvdklauw  |         Owner:  nobody               
            Status:  new       |     Milestone:                       
         Component:  Forms     |       Version:  SVN                  
        Resolution:            |      Keywords:  inlineformset_factory
             Stage:  Accepted  |     Has_patch:  1                    
        Needs_docs:  0         |   Needs_tests:  0                    
Needs_better_patch:  0         |  
-------------------------------+--------------------------------------------
Comment (by vung):

 Having `None` as default for `formfield_callback` seems better to me, so I
 added some tests to the patch provided by @kenth in #13633.

 The patch is a bit different, though. If `formfield_callback` is `None`,
 then `formfield()` is called directly instead of creating a lambda that
 calls it.

 Note that not all tests fail before the patch; some of them are there to
 ensure that changing the defaults to None doesn't change current
 behaviour.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13095#comment:12>
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to