﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18976	problem with datepicker django widget	lukasz.z.grabowski@…	nobody	"hello, 

we have a problem with date picker widget. 
We defined form like this :


{{{
class GenerateCsvForm(forms.Form):
    """"""
   Form to get start date and end date.
    """"""
    start_date = forms.DateField(widget=widgets.AdminDateWidget())
    end_date   = forms.DateField(widget=widgets.AdminDateWidget())

}}}


which is used in template - this is basic page which is positng two dates and show some records. 
The problem is that in django 1.3.X it was working well - but after migration to django 1.4 we have a JS problem lile:


{{{
Uncaught ReferenceError: django is not defined        DateTimeShortcuts.js:205
DateTimeShortcuts.addCalendar                        DateTimeShortcuts.js:205
DateTimeShortcuts.init                  DateTimeShortcuts.js:34
}}}


Those errors appear on page load - which leads us to point where second date picker is not render.


"	Bug	closed	Forms	1.4	Normal	invalid	django admin, django jquery, datepicker, DateTimeShortcuts		Unreviewed	0	0	0	0	0	0
