Update web/core/views.py
This commit is contained in:
+3
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user