Opened 15 years ago

Closed 15 years ago

#13807 closed (fixed)

Date/Time functions dont work in the admin ( 1.2 ) - DateTimeShortcuts.handleCalendarQuickLink(0, 0)

Reported by: meder Owned by: nobody
Component: Uncategorized Version: 1.2
Severity: Keywords: date time today get_format
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I grabbed Django 1.2.1 and setup my new project up. Within the admin, if you have a date time field there are corresponding widgets to populate them.

"Today" link is mapped to "DateTimeShortcuts.handleCalendarQuickLink(0, 0)" which internally invokes the get_format global JS method but it doesn't exist. This reference to get_format is in admin js calendar.js file. My old calendar.js doesn't have this reference.

I checked the rest of the admin js files and they dont seem to have that function. Is it possible it was left out in the 1.2 release?

Change History (3)

comment:2 by meder, 15 years ago

It seems like the function is supposed to be in /admin/jsi18n

comment:3 by meder, 15 years ago

Resolution: fixed
Status: newclosed

it seems like it's relying on my old i18n.py even though i'm using virtualenv.

Note: See TracTickets for help on using tickets.
Back to Top