From df41b5a05d4e00e80e73afe629072e37873e767a Mon Sep 17 00:00:00 2001 From: Sjoerd Job Postmus Date: Thu, 20 Oct 2016 19:29:04 +0200 Subject: Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201. Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs. --- django/views/generic/dates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/views/generic') diff --git a/django/views/generic/dates.py b/django/views/generic/dates.py index 5e0247474d..2aedf3aacd 100644 --- a/django/views/generic/dates.py +++ b/django/views/generic/dates.py @@ -612,7 +612,7 @@ def _date_from_string(year, year_format, month='', month_format='', day='', day_ (only year is mandatory). Raise a 404 for an invalid date. """ format = year_format + delim + month_format + delim + day_format - datestr = year + delim + month + delim + day + datestr = str(year) + delim + str(month) + delim + str(day) try: return datetime.datetime.strptime(datestr, format).date() except ValueError: -- cgit v1.3