Fixed regression on Python 2.6
authorEriol
Fri, 21 Dec 2012 20:06:34 +0100
changeset 87c567fac1eed7
parent 86 fa727186256c
child 88 2959c345df43
Fixed regression on Python 2.6
blog/urls.py
     1.1 --- a/blog/urls.py	Tue Nov 27 05:24:22 2012 +0100
     1.2 +++ b/blog/urls.py	Fri Dec 21 20:06:34 2012 +0100
     1.3 @@ -19,7 +19,9 @@
     1.4      'paginate_by': 10,
     1.5  }
     1.6  entry_info_month = dict(entry_info, month_format='%m')
     1.7 -entry_info_year = {k: entry_info[k] for k in entry_info if k != 'paginate_by'}
     1.8 +
     1.9 +entry_info_year = entry_info.copy()
    1.10 +del entry_info_year['paginate_by']
    1.11  
    1.12  category_info = {
    1.13      'queryset': Category.objects.all(),