google-code-export / dojango

Automatically exported from code.google.com/p/dojango
Other
1 stars 0 forks source link

formfield_function() should always pass kwargs to Field.formfield(). #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Django Field.formfield() accepts kwargs that will overwrite computed defaults 
based on field model definition. In case of Dojango such overwritting is 
impossible, because dojango.forms.models.formfield_function() ignores kwargs in 
some situations:

    def formfield_function(field, **kwargs):
        # ...
            # ...
            return field.formfield(form_class=field_map[1])

Would you please add kwargs argument to all such calls in that function?

Original issue reported on code.google.com by zim...@gmail.com on 26 Jan 2011 at 5:18

GoogleCodeExporter commented 9 years ago
Hi zimnyx. I've looked into the custom formfield_callback and saw that this 
parameter passing was changed since Django 1.0. r282 is fixing this.

Thanks for your report.

Original comment by tobias.k...@googlemail.com on 7 Feb 2011 at 11:09