I don't require any change of functionality, I just want the following two
methods to create a model form to be equal:
{{{
#!python
# This works, but it's hard to read on a module level.
MyModelForm = modelform_factory(MyModel, formfield_callback=my_callback)
# This does the same thing, but it's not documented.
class MyModelForm(forms.ModelForm):
formfield_callback = my_callback
class Meta:
model = MyModel
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26456>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_docs: => 0
* version: 1.9 => master
* component: Uncategorized => Documentation
* needs_tests: => 0
* needs_better_patch: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/26456#comment:1>
* status: new => closed
* type: Uncategorized => New feature
* resolution: => wontfix
Comment:
The attribute is described as an "internal implementation detail" in
#12915 and the possibility of moving it to `Meta` is discussed. Therefore,
I don't think it's a good idea to document it as currently implemented.
--
Ticket URL: <https://code.djangoproject.com/ticket/26456#comment:2>