Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2848: broken doctest in comment app. Thanks, dummy@habmalnefra…

…ge.de

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4049 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a14dba5eeda3ecd51cc9299878a757df174285a4 1 parent fef89a0
Jacob Kaplan-Moss jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/comments/models.py
2  django/contrib/comments/models.py
View
@@ -34,7 +34,7 @@ def get_rating_options(self, rating_string):
"""
Given a rating_string, this returns a tuple of (rating_range, options).
>>> s = "scale:1-10|First_category|Second_category"
- >>> get_rating_options(s)
+ >>> Comment.objects.get_rating_options(s)
([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], ['First category', 'Second category'])
"""
rating_range, options = rating_string.split('|', 1)
Please sign in to comment.
Something went wrong with that request. Please try again.