Update web/core/views.py
This commit is contained in:
parent
225eb35d96
commit
d1c25a0c61
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user