Skip to content

Commit

Permalink
Fix build issue with never_cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Feb 6, 2024
1 parent 30cc49a commit 2339762
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions project_id/app/views/apis/statusviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from concurrent.futures import ThreadPoolExecutor

from django.http import JsonResponse
from django.utils.decorators import method_decorator
from django.utils.translation import gettext_lazy as _
from django.views.decorators.cache import never_cache
from health_check.plugins import plugin_dir
Expand All @@ -11,7 +12,7 @@

__author__ = "Alex Laird"
__copyright__ = "Copyright 2019, Helium Edu"
__version__ = "1.1.0"
__version__ = "1.3.0"


def _run_checks(plugins):
Expand Down Expand Up @@ -56,7 +57,7 @@ class StatusResourceView(ViewSet):
Check the status of the system and its dependencies.
"""

@never_cache
@method_decorator(never_cache)
def status(self, request, *args, **kwargs):
plugins = sorted((
plugin_class(**copy.deepcopy(options))
Expand Down

0 comments on commit 2339762

Please sign in to comment.