Code

Opened 4 years ago

Closed 4 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: UI/UX:

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?

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by meder

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 4 years ago by meder

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

comment:3 Changed 4 years ago by meder

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.