diff --git a/web/core/views.py b/web/core/views.py index 6bde8f2..1d329d6 100644 --- a/web/core/views.py +++ b/web/core/views.py @@ -1021,9 +1021,9 @@ def login_attempts(request): attempts = LoginAttempt.objects.filter(timestamp__gte=cutoff).order_by("-timestamp") return render(request, "tools/login_attempts.html", {"attempts": attempts}) - @login_required - @require_POST - def clear_history(request): +@login_required +@require_POST +def clear_history(request): """ Clear the current user's history shown on the Search page: - SearchHistory (last 10 searches)