#11174: CommentModerator's moderate_after does not accept 0.
-------------------------------------+--------------------------------------
 Reporter:  [email protected]  |       Owner:  nobody    
   Status:  new                      |   Milestone:            
Component:  Uncategorized            |     Version:  SVN       
 Keywords:                           |       Stage:  Unreviewed
Has_patch:  0                        |  
-------------------------------------+--------------------------------------
 the CommentModerator has two fields which together allow you to make
 comments default to non-public X-days after the related object is posted.
 however, it doesn't allow for that X to be zero.

 from django/contrib/comments/moderation.py:223
 {{{ if self.auto_moderate_field and self.moderate_after: }}}
 should probably read:
 {{{ if self.auto_moderate_field and self.moderate_after is not None: }}}

 this would allow for comments to always be moderated. (perhaps I'm missing
 the "correct" way to have all comments non-public by default. but none the
 less, the principle of least surprise says that this should work with a
 zero.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11174>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to