trivial: Remove 'cache_control' decorator

The referenced bug has been fixed in all supported versions.

Change-Id: I0154dd99d83e6873660dc7edb9b40d02ba4e43f1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane 2019-08-26 17:25:39 +01:00 committed by Akihiro Motoki
parent a96c6e34cf
commit bb2b1fd6c9
1 changed files with 0 additions and 5 deletions

View File

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