#4090: Allow django.newforms.extras be included at django.newforms
----------------------------------------+-----------------------------------
Reporter: brosner <[EMAIL PROTECTED]> | Owner: adrian
Status: new | Component: django.newforms
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 1
----------------------------------------+-----------------------------------
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.
--
Ticket URL: <http://code.djangoproject.com/ticket/4090>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---