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

@@ -82,7 +82,6 @@ class SecretListView(PermissionRequiredMixin, ObjectListView):
class SecretView(PermissionRequiredMixin, View):
permission_required = 'secrets.view_secret'
@method_decorator(cache_page(settings.CACHE_TIMEOUT))
def get(self, request, pk):
secret = get_object_or_404(Secret, pk=pk)