Browse Source

Merge "trivial: Remove 'cache_control' decorator"

tags/16.0.0.0b2
Zuul 1 week ago
parent
commit
7830a74fe8
1 changed files with 0 additions and 5 deletions
  1. 0
    5
      openstack_dashboard/dashboards/project/volumes/views.py

+ 0
- 5
openstack_dashboard/dashboards/project/volumes/views.py View File

@@ -26,7 +26,6 @@ from django.urls import reverse_lazy
26 26
 from django.utils.decorators import method_decorator
27 27
 from django.utils import encoding
28 28
 from django.utils.translation import ugettext_lazy as _
29
-from django.views.decorators.cache import cache_control
30 29
 from django.views.decorators.cache import never_cache
31 30
 from django.views import generic
32 31
 
@@ -683,10 +682,6 @@ class EncryptionDetailView(generic.TemplateView):
683 682
 
684 683
 
685 684
 class DownloadTransferCreds(generic.View):
686
-    # TODO(Itxaka): Remove cache_control in django >= 1.9
687
-    # https://code.djangoproject.com/ticket/13008
688
-    @method_decorator(cache_control(max_age=0, no_cache=True,
689
-                                    no_store=True, must_revalidate=True))
690 685
     @method_decorator(never_cache)
691 686
     def get(self, request, transfer_id, auth_key):
692 687
         try:

Loading…
Cancel
Save