

@login_required
def close(request, suggestion_id):
    suggestion = Suggestion.objects.get(pk=suggestion_id)
    suggestion.completed = True
    suggestion.save()
    return HttpResponseRedirect('../../')

dataset/ETHPy150Open azavea/Open-Data-Catalog/OpenDataCatalog/suggestions/views.py close/original