git-svn-id: http://code.djangoproject.com/svn/django/trunk@268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2005-07-21 13:53:33 +00:00
parent e1d21e5bcf
commit 6b514f1aab
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ def object_detail(request, year, month, day, app_label, module_name, date_field,
the object to be detailed the object to be detailed
""" """
try: 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: except ValueError:
raise Http404 raise Http404
mod = get_module(app_label, module_name) mod = get_module(app_label, module_name)