Permalink
Browse files

Fixed typo in views.py

git-svn-id: https://django-voting.googlecode.com/svn/trunk@18 662f01ad-f42a-0410-a340-718c64ddaef4
  • Loading branch information...
1 parent af724f6 commit 879dab273407edfb02fe1cb2ac46047c6466212b @insin insin committed Mar 12, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 views.py
View
@@ -72,7 +72,7 @@ def vote_on_object(request, model, direction, post_vote_redirect=None,
next = obj.get_absolute_url()
else:
next = obj.get_absolute_url
- else
+ else:
raise AttributeError('Generic vote view must be called with either post_vote_redirect, a "next" parameter in the request, or the object being voted on must define a get_absolute_url method or property.')
Vote.objects.record_vote(obj, request.user, vote)
return HttpResponseRedirect(next)

0 comments on commit 879dab2

Please sign in to comment.