File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1414from django .db .models import Prefetch , Count , Q , OuterRef
1515from django .utils import timezone
1616
17- from django .utils .decorators import method_decorator
18- from django .views .decorators .cache import cache_page
17+ # ¤ FIXME for cache switch-on (see also /main/settings.py)
18+ # ¤ from django.utils.decorators import method_decorator
19+ # ¤ from django.views.decorators.cache import cache_page
1920
2021from main .utils import is_tableau
2122from deployments .models import Personnel
@@ -649,7 +650,7 @@ def remove_unconfirmed_events(self, objs):
649650 return [self .remove_unconfirmed_event (obj ) for obj in objs ]
650651
651652 # Overwrite to exclude the events which require confirmation
652- @method_decorator (cache_page (1200 ))
653+ # ¤ @method_decorator(cache_page(1200))
653654 def list (self , request , * args , ** kwargs ):
654655 now = timezone .now ()
655656 date = request .GET .get ('date' , now )
Original file line number Diff line number Diff line change 205205}
206206
207207# To find a more suitable caching strategy, not loading the cache middleware
208- # temporarily. At enable time pls rename api/t_est_cache.py also. FIXME: # ¤
208+ # temporarily. At enable time pls rename api/t_est_cache.py also. FIXME: search # ¤ - also in /api/drf_views.py
209209MIDDLEWARE = [
210210 'debug_toolbar.middleware.DebugToolbarMiddleware' ,
211211 'django.middleware.security.SecurityMiddleware' ,
You can’t perform that action at this time.
0 commit comments