mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #137 -- thanks nesh@studioquattro.co.yu
git-svn-id: http://code.djangoproject.com/svn/django/trunk@268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -188,7 +188,7 @@ def object_detail(request, year, month, day, app_label, module_name, date_field,
|
||||
the object to be detailed
|
||||
"""
|
||||
try:
|
||||
date = datetime.date(*time.strptime(year+month+day, '%Y%b%d')[:3])
|
||||
date = datetime.datetime(*time.strptime(year+month+day, '%Y%b%d')[:3])
|
||||
except ValueError:
|
||||
raise Http404
|
||||
mod = get_module(app_label, module_name)
|
||||
|
||||
Reference in New Issue
Block a user