diff --git a/AUTHORS b/AUTHORS
index e22ee45..8190571 100644
a
|
b
|
answer newbie questions, and generally made Django that much better:
|
243 | 243 | Jannis Leidel <jl@websushi.org> |
244 | 244 | Christopher Lenz <http://www.cmlenz.net/> |
245 | 245 | lerouxb@gmail.com |
| 246 | Justin Lilly <justinlilly@gmail.com> |
246 | 247 | Waylan Limberg <waylan@gmail.com> |
247 | 248 | limodou |
248 | 249 | Philip Lindborg <philip.lindborg@gmail.com> |
diff --git a/django/views/generic/date_based.py b/django/views/generic/date_based.py
index a745559..f2334ec 100644
a
|
b
|
def archive_month(request, year, month, queryset, date_field,
|
116 | 116 | """ |
117 | 117 | if extra_context is None: extra_context = {} |
118 | 118 | try: |
119 | | date = datetime.date(*time.strptime(year+month, '%Y'+month_format)[:3]) |
| 119 | date = datetime.date(*time.strptime("%s-%s" % (year, month), '%s-%s' % ('%Y', month_format))[:3]) |
120 | 120 | except ValueError: |
121 | 121 | raise Http404 |
122 | 122 | |
… |
… |
def archive_day(request, year, month, day, queryset, date_field,
|
231 | 231 | """ |
232 | 232 | if extra_context is None: extra_context = {} |
233 | 233 | try: |
234 | | date = datetime.date(*time.strptime(year+month+day, '%Y'+month_format+day_format)[:3]) |
| 234 | date = datetime.date(*time.strptime("%s-%s-%s" % (year, month, day), '%s-%s-%s' % ('%Y', month_format, day_format))[:3]) |
235 | 235 | except ValueError: |
236 | 236 | raise Http404 |
237 | 237 | |
… |
… |
def object_detail(request, year, month, day, queryset, date_field,
|
301 | 301 | """ |
302 | 302 | if extra_context is None: extra_context = {} |
303 | 303 | try: |
304 | | date = datetime.date(*time.strptime(year+month+day, '%Y'+month_format+day_format)[:3]) |
| 304 | date = datetime.date(*time.strptime('%s-%s-%s' % (year, month, day), '%s-%s-%s' % ('%Y', month_format, day_format))[:3]) |
305 | 305 | except ValueError: |
306 | 306 | raise Http404 |
307 | 307 | |