Skip to content

Commit 197141a

Browse files
committed
Update 'ref/contrib/comments/moderation.txt' (#190)
1.0〜1.4間の更新差分を反映。
1 parent 0ae5253 commit 197141a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

ref/contrib/comments/moderation.txt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
.. _ref-contrib-comments-moderation:
2-
31
==========================
42
Generic comment moderation
53
==========================
64

7-
:revision-up-to: 11321 (1.1) unfinished
5+
:revision-up-to: 17812 (1.4) unfinished
86

97
.. module:: django.contrib.comments.moderation
108
:synopsis: Support for automatic comment moderation.
@@ -33,7 +31,7 @@ and uses a two-step process to enable moderation for any given model:
3331
model class and the class which specifies its moderation options.
3432

3533
A simple example is the best illustration of this. Suppose we have the
36-
following model, which would represent entries in a weblog::
34+
following model, which would represent entries in a Weblog::
3735

3836
from django.db import models
3937

@@ -108,7 +106,9 @@ Built-in moderation options
108106
If :attr:`auto_close_field` is used, this must specify the number
109107
of days past the value of the field specified by
110108
:attr:`auto_close_field` after which new comments for an object
111-
should be disallowed. Default value is ``None``.
109+
should be disallowed. Allowed values are ``None``, 0 (which disallows
110+
comments immediately), or any positive integer. Default value is
111+
``None``.
112112

113113
.. attribute:: email_notification
114114

@@ -130,12 +130,18 @@ Built-in moderation options
130130
If :attr:`auto_moderate_field` is used, this must specify the number
131131
of days past the value of the field specified by
132132
:attr:`auto_moderate_field` after which new comments for an object
133-
should be marked non-public. Default value is ``None``.
133+
should be marked non-public. Allowed values are ``None``, 0 (which
134+
moderates comments immediately), or any positive integer. Default
135+
value is ``None``.
134136

135137
Simply subclassing :class:`CommentModerator` and changing the values of these
136138
options will automatically enable the various moderation methods for any
137139
models registered using the subclass.
138140

141+
.. versionchanged:: 1.3
142+
143+
``moderate_after`` and ``close_after`` now accept 0 as a valid value.
144+
139145
Adding custom moderation methods
140146
--------------------------------
141147

0 commit comments

Comments
 (0)