Ticket #10878: 10878-r11858.diff

File 10878-r11858.diff, 1.2 KB (added by Travis Cline <travis.cline@…>, 14 years ago)
  • django/contrib/comments/moderation.py

    diff --git a/django/contrib/comments/moderation.py b/django/contrib/comments/moderation.py
    index e8cd08f..fd6f318 100644
    a b class Moderator(object):  
    250250    models registered for comment moderation, and their associated
    251251    moderation classes, and apply moderation to all incoming comments.
    252252
    253     To register a model, obtain an instance of ``CommentModerator``
    254     (this module exports one as ``moderator``), and call its
    255     ``register`` method, passing the model class and a moderation
    256     class (which should be a subclass of ``CommentModerator``). Note
    257     that both of these should be the actual classes, not instances of
    258     the classes.
     253    To register a model, obtain an instance of ``Moderator`` (this
     254    module exports one as ``moderator``), and call its ``register``
     255    method, passing the model class and a moderation class (which
     256    should be a subclass of ``CommentModerator``). Note that both of
     257    these should be the actual classes, not instances of the classes.
    259258
    260259    To cease moderation for a model, call the ``unregister`` method,
    261260    passing the model class.
Back to Top