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