comments_allowed function for your model/...

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

  1. Unobtrusive comment moderation by ubernostrum 7 years, 1 month ago
  2. Content Moderator by mutazmq 4 years, 11 months ago
  3. Email on new comments by ubernostrum 6 years, 8 months ago
  4. FieldAccessForm (per-field user access for forms derived from models) by Killarny 5 years, 6 months ago
  5. Get derived model instance by werehuman 7 months, 1 week ago

Comments

bigtotoro (on June 4, 2013):

i do not understand clearly.

#

(Forgotten your password?)