Allow django.newforms.extras be included at django.newforms
|Reported by:||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)
comment:1 Changed 10 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Design decision needed|