예제 #1
0
def feedback(request):
    if 'text' in request.POST:
        f = FeedbackNote(text=request.POST['text'])
        f.save()
    return HttpResponse('Thanks!')
예제 #2
0
def feedback(request):
    if 'text' in request.POST:
        f = FeedbackNote(text=request.POST['text'])
        f.save()
        return HttpResponse(status=200)
    return HttpResponse(status=400)
예제 #3
0
def feedback(request):
    if 'text' in request.POST:
        f = FeedbackNote(text=request.POST['text'])
        f.save()
    return HttpResponse('Thanks!');
예제 #4
0
def feedback(request):
    if 'text' in request.POST:
        f = FeedbackNote(text=request.POST['text'])
        f.save()
        return HttpResponse(status=200)
    return HttpResponse(status=400)