1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

change cacheing to use cacheops

This commit is contained in:
John Anderson
2019-04-17 12:29:21 -04:00
parent 6034265dfd
commit 2580b026fe
12 changed files with 31 additions and 77 deletions

View File

@@ -108,7 +108,6 @@ class ObjectListView(View):
return csv_data
@method_decorator(cache_page(settings.CACHE_TIMEOUT))
def get(self, request):
model = self.queryset.model
@@ -716,7 +715,6 @@ class ComponentCreateView(View):
model_form = None
template_name = None
@method_decorator(cache_page(settings.CACHE_TIMEOUT))
def get(self, request, pk):
parent = get_object_or_404(self.parent_model, pk=pk)