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