#18976: problem with datepicker django widget
-------------------------------------+-------------------------------------
     Reporter:                       |      Owner:  nobody
  lukasz.z.grabowski@…               |     Status:  new
         Type:  Bug                  |    Version:  1.4
    Component:  Forms                |   Keywords:  django admin, django
     Severity:  Normal               |  jquery, datepicker,
 Triage Stage:  Unreviewed           |  DateTimeShortcuts
Easy pickings:  0                    |  Has patch:  0
                                     |      UI/UX:  0
-------------------------------------+-------------------------------------
 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18976>
Django <https://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 https://groups.google.com/groups/opt_out.


Reply via email to