Ticket #1749: admin_list.patch
File admin_list.patch, 1.0 KB (added by , 19 years ago) |
---|
-
django/contrib/admin/templatetags/admin_list.py
220 220 }, 221 221 'choices': [{ 222 222 'link': link({year_field: year_lookup, month_field: month_lookup, day_field: day.day}), 223 'title': day.strftime('%B %d')223 'title': MONTHS[int(month_lookup)] + ' ' + str(int(day.strftime('%d'))) 224 224 } for day in days] 225 225 } 226 226 elif year_lookup: … … 233 233 }, 234 234 'choices': [{ 235 235 'link': link({year_field: year_lookup, month_field: month.month}), 236 'title': "%s %s" % ( month.strftime('%B'), month.year)236 'title': "%s %s" % (MONTHS[int(month.strftime('%m'))], month.year) 237 237 } for month in months] 238 238 } 239 239 else: