Ticket #2848: django-comment-doctest.diff

File django-comment-doctest.diff, 631 bytes (added by dummy@…, 17 years ago)

This fixes the doctest, the other patch file disables the doctest

  • django/contrib/comments/models.py

     
    3434        """
    3535        Given a rating_string, this returns a tuple of (rating_range, options).
    3636        >>> s = "scale:1-10|First_category|Second_category"
    37         >>> get_rating_options(s)
     37        >>> Comment.objects.get_rating_options(s)
    3838        ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], ['First category', 'Second category'])
    3939        """
    4040        rating_range, options = rating_string.split('|', 1)
Back to Top