Fixed #2848: broken doctest in comment app. Thanks, dummy@habmalnefrage.de

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4049 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2006-11-07 05:20:00 +00:00
parent fef89a01c5
commit a14dba5eed
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class CommentManager(models.Manager):
""" """
Given a rating_string, this returns a tuple of (rating_range, options). Given a rating_string, this returns a tuple of (rating_range, options).
>>> s = "scale:1-10|First_category|Second_category" >>> 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']) ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], ['First category', 'Second category'])
""" """
rating_range, options = rating_string.split('|', 1) rating_range, options = rating_string.split('|', 1)