Allow django.newforms.extras be included at django.newforms
|Reported by:||brosner <brosner@…>||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I use the following code to get access to newforms code.
import django.newforms as forms class MyForm(forms.Form) mydate = forms.DateField()
All works well, but following the same convention and wanting to use the django.newforms.extras.SelectDateWidget will result in extras not being found.
import django.newforms as forms class MyForm(forms.Form) mydate = forms.DateField(widget=forms.extras.SelectDateWidget())
I have attached the one liner needed in django/newforms/init.py to allow for this. I don't see it as causing any problems.
Change History (3)
Changed 7 years ago by brosner <brosner@…>
comment:1 Changed 7 years ago by Gary Wilson <gary.wilson@…>
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Design decision needed