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:1 by , 15 years ago
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
it seems like it's relying on my old i18n.py even though i'm using virtualenv.
Seems to be defined in http://code.djangoproject.com/browser/django/trunk/django/views/i18n.py per FunkyBob