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