Example #1
0
def comment_downvote(request, id):
    html = "recipeview.html"
    voting_helper(id, Comment, 'downvote')
    return HttpResponseRedirect(request.META.get('HTTP_REFERER', '/'))
Example #2
0
def recipe_upvote(request, id):
    html = "recipeview.html"
    voting_helper(id, Recipe, 'upvote')
    return HttpResponseRedirect(request.META.get('HTTP_REFERER', '/'))