def feedback(request): if 'text' in request.POST: f = FeedbackNote(text=request.POST['text']) f.save() return HttpResponse('Thanks!')
def feedback(request): if 'text' in request.POST: f = FeedbackNote(text=request.POST['text']) f.save() return HttpResponse(status=200) return HttpResponse(status=400)
def feedback(request): if 'text' in request.POST: f = FeedbackNote(text=request.POST['text']) f.save() return HttpResponse('Thanks!');