def feedback(request): if request.method == 'POST': print "2" feed = rate(request.POST) if feed.is_valid(): user_feed = Rating.objects.create( posted_by = request.user.username, rating = feed.cleaned_data['rating'], suggesion = feed.cleaned_data['suggesion'], ) user_feed.save() return render_to_response('feed.html',locals()) else: feed = rate() return render_to_response('rate.html',locals())
def user_rating(request): rating = rate() return render_to_response('rate.html',locals())