Skip to content

Commit

Permalink
Fixed #10878, an error in the Moderator docstring.
Browse files Browse the repository at this point in the history
Thanks, Travis Cline.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12639 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jacobian committed Mar 1, 2010
1 parent b3a5675 commit 8b2662c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions django/contrib/comments/moderation.py
Expand Up @@ -250,12 +250,11 @@ class Moderator(object):
models registered for comment moderation, and their associated models registered for comment moderation, and their associated
moderation classes, and apply moderation to all incoming comments. moderation classes, and apply moderation to all incoming comments.
To register a model, obtain an instance of ``CommentModerator`` To register a model, obtain an instance of ``Moderator`` (this
(this module exports one as ``moderator``), and call its module exports one as ``moderator``), and call its ``register``
``register`` method, passing the model class and a moderation method, passing the model class and a moderation class (which
class (which should be a subclass of ``CommentModerator``). Note should be a subclass of ``CommentModerator``). Note that both of
that both of these should be the actual classes, not instances of these should be the actual classes, not instances of the classes.
the classes.
To cease moderation for a model, call the ``unregister`` method, To cease moderation for a model, call the ``unregister`` method,
passing the model class. passing the model class.
Expand Down

0 comments on commit 8b2662c

Please sign in to comment.