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:
parent
e1d21e5bcf
commit
6b514f1aab
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue