def reset_filters(request, task_id):
    try:
        task = Task.objects.get(pk=task_id)
    except Task.DoesNotExist:
        return Http404('The Task does not exist')
    search_filters = SearchFilter(request, task)
    search_filters.delete()
    return redirect('task', task_id)
def reset_filters(request, task_id):
    try:
        task = Task.objects.get(pk=task_id)
    except Task.DoesNotExist:
        return Http404('The Task does not exist')
    search_filters = SearchFilter(request, task)
    search_filters.delete()
    return redirect('task', task_id)