예제 #1
0
파일: models.py 프로젝트: Taaag/taaag
 def is_friend_of(self, other_id):
     return str(other_id) == '0' or (User.get_by_id(other_id)
                                     and is_friend_of(self, other_id))
예제 #2
0
파일: models.py 프로젝트: Taaag/taaag
 def can_tag(self, taggee):
     return is_friend_of(self, taggee.id) and taggee.allow_tag()
예제 #3
0
파일: models.py 프로젝트: Taaag/taaag
 def can_tag(self, taggee):
     return is_friend_of(self, taggee.id) and taggee.allow_tag()
예제 #4
0
파일: models.py 프로젝트: Taaag/taaag
 def is_friend_of(self, other_id):
     return str(other_id) == '0' or (User.get_by_id(other_id) and is_friend_of(self, other_id))