Django Comment Moderation: Anything wrong with using "moderate_after = 0"?
I'm building a simple blog with class "Post" as follows:
class Post(models.Model):
title = models.CharField(max_length=1000)
author = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
text = models.TextField(max_length=10000)
I'm trying to implement the simplest possible comment form and comment moderation using the built-in Django comments app. One thing I've noticed is that under "Built-in moderation options" in the docs, there is no option to set the "is_public" field for all comments to "False" by default. The closest thing is the "CommentModerator.moderate()" method listed just below under "Adding custom moderation methods." Since I don't want to add any custom methods unless necessary just yet, is there anything wrong with simply setting "auto_moderate_field" to "pub_date", and then just setting "moderate_after" to 0?
In other words, is there anything wrong with setting the comments to be automatically moderated zero days after each blog post is published? I want to make sure I didn't miss any potential security issues, or violate any general programming principles in doing so (I'm still new to programming in general).
thanks!
Guillaume
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/OXB5Ep1ByBgJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home