Exemple #1
0
 def count(self, obj):
     return len(comments.for_entity(obj, check_commentable=True))
Exemple #2
0
 def has_comments(self, obj):
     return bool(comments.for_entity(obj, check_commentable=True))
Exemple #3
0
 def for_entity(self, obj, check_commentable=False):
     return comments.for_entity(obj, check_commentable=check_commentable)
Exemple #4
0
 def count(self, obj):
   return len(comments.for_entity(obj, check_commentable=True))
Exemple #5
0
 def has_comments(self, obj):
   return bool(comments.for_entity(obj, check_commentable=True))
Exemple #6
0
 def for_entity(self, obj, check_commentable=False):
   return comments.for_entity(obj, check_commentable=check_commentable)