Ticket #2848: django-comment-doctest.diff
File django-comment-doctest.diff, 631 bytes (added by , 18 years ago) |
---|
-
django/contrib/comments/models.py
34 34 """ 35 35 Given a rating_string, this returns a tuple of (rating_range, options). 36 36 >>> s = "scale:1-10|First_category|Second_category" 37 >>> get_rating_options(s)37 >>> Comment.objects.get_rating_options(s) 38 38 ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], ['First category', 'Second category']) 39 39 """ 40 40 rating_range, options = rating_string.split('|', 1)