diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-11-13 18:42:56 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-11-13 18:42:56 +0000 |
| commit | 9b7be918edb6a821af786975db645b8f8d261a2c (patch) | |
| tree | b8c234f08479bc791507d8fce90757805e179dce /docs/ref | |
| parent | 109f42a981cf28c2da8a82f59536a3a732572f02 (diff) | |
Fixed #12325 -- Allows zero values for moderate_after and close_after fields of comment moderators. Thanks, Gabriel Hurley.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/comments/moderation.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/ref/contrib/comments/moderation.txt b/docs/ref/contrib/comments/moderation.txt index 519bc5edd1..4f4b326cb2 100644 --- a/docs/ref/contrib/comments/moderation.txt +++ b/docs/ref/contrib/comments/moderation.txt @@ -104,7 +104,9 @@ Built-in moderation options If :attr:`auto_close_field` is used, this must specify the number of days past the value of the field specified by :attr:`auto_close_field` after which new comments for an object - should be disallowed. Default value is ``None``. + should be disallowed. Allowed values are ``None``, 0 (which disallows + comments immediately), or any positive integer. Default value is + ``None``. .. attribute:: email_notification @@ -126,12 +128,18 @@ Built-in moderation options If :attr:`auto_moderate_field` is used, this must specify the number of days past the value of the field specified by :attr:`auto_moderate_field` after which new comments for an object - should be marked non-public. Default value is ``None``. + should be marked non-public. Allowed values are ``None``, 0 (which + moderates comments immediately), or any positive integer. Default + value is ``None``. Simply subclassing :class:`CommentModerator` and changing the values of these options will automatically enable the various moderation methods for any models registered using the subclass. +.. versionchanged:: 1.3 + +``moderate_after`` and ``close_after`` now accept 0 as a valid value. + Adding custom moderation methods -------------------------------- |
