1 2 3 4 5 6 7 8 | from django.contrib.comments.moderation import CommentModerator
from django.db import models
class Entry(models.Model):
#regular fields etc. defined here
def comments_allowed(self):
return CommentModerator(self.__class__).allow(None, self, None)
|
More like this
- Type checking templatetag filters by marcorogers 3 years, 2 months ago
- Simple Mobile Support by bahoo 2 years, 7 months ago
- FieldAccessForm (per-field user access for forms derived from models) by Killarny 4 years, 7 months ago
- fancy_if by Scanner 6 years, 1 month ago
- Generic model filter from request GET data by genbit 1 year, 9 months ago
Comments