Ticket #9576: widgets.diff
File widgets.diff, 954 bytes (added by , 16 years ago) |
---|
-
widgets.py
41 41 42 42 class AdminDateWidget(forms.TextInput): 43 43 class Media: 44 js = (settings.ADMIN_MEDIA_PREFIX + "js/calendar.js", 44 js = (settings.ADMIN_MEDIA_PREFIX + "js/core.js", 45 settings.ADMIN_MEDIA_PREFIX + "js/calendar.js", 45 46 settings.ADMIN_MEDIA_PREFIX + "js/admin/DateTimeShortcuts.js") 46 47 47 48 def __init__(self, attrs={}): … … 49 50 50 51 class AdminTimeWidget(forms.TextInput): 51 52 class Media: 52 js = (settings.ADMIN_MEDIA_PREFIX + "js/calendar.js", 53 js = (settings.ADMIN_MEDIA_PREFIX + "js/core.js", 54 settings.ADMIN_MEDIA_PREFIX + "js/calendar.js", 53 55 settings.ADMIN_MEDIA_PREFIX + "js/admin/DateTimeShortcuts.js") 54 56 55 57 def __init__(self, attrs={}):