diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/widgets.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/widgets.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py index ceff52942e..53696912a4 100644 --- a/bitbake/lib/toaster/toastergui/widgets.py +++ b/bitbake/lib/toaster/toastergui/widgets.py | |||
@@ -7,6 +7,7 @@ | |||
7 | # | 7 | # |
8 | 8 | ||
9 | from django.views.generic import View, TemplateView | 9 | from django.views.generic import View, TemplateView |
10 | from django.utils.decorators import method_decorator | ||
10 | from django.views.decorators.cache import cache_control | 11 | from django.views.decorators.cache import cache_control |
11 | from django.shortcuts import HttpResponse | 12 | from django.shortcuts import HttpResponse |
12 | from django.core.cache import cache | 13 | from django.core.cache import cache |
@@ -63,8 +64,8 @@ class ToasterTable(TemplateView): | |||
63 | self.default_orderby = "" | 64 | self.default_orderby = "" |
64 | 65 | ||
65 | # prevent HTTP caching of table data | 66 | # prevent HTTP caching of table data |
66 | @cache_control(must_revalidate=True, | 67 | @method_decorator(cache_control(must_revalidate=True, |
67 | max_age=0, no_store=True, no_cache=True) | 68 | max_age=0, no_store=True, no_cache=True)) |
68 | def dispatch(self, *args, **kwargs): | 69 | def dispatch(self, *args, **kwargs): |
69 | return super(ToasterTable, self).dispatch(*args, **kwargs) | 70 | return super(ToasterTable, self).dispatch(*args, **kwargs) |
70 | 71 | ||