Commits

Federico Maggi committed 90b8817 Draft

Remove caching

Comments (0)

Files changed (1)

academic/people/urls.py

 from django.conf.urls.defaults import *
-from django.views.decorators.cache import cache_page
 from django.views.generic.list_detail import object_list
 from django.views.generic.list import ListView
 
     # object_list|regroup }}. Thus, let's stick to the old approach for now.
 
     url(r'^$',
-        cache_page(object_list),
+        object_list,
         {'template_name': 'academic/person_list.html',
          'queryset': Person.objects_visible.all(),
          'extra_context': {
         name='academic_people_person_list'),
 
     url(r'^\#person-(?P<object_id>\d+)$',
-        cache_page(ListView.as_view(
+        ListView.as_view(
                 template_name='academic/person_list.html',
-                model=Person)),
+                model=Person),
         name='academic_people_person_detail'),
 )