示例#1
0
 def cancel(self):
     """ cancel this friendship request """
     self.delete()
     friendship_request_canceled.send(sender=self)
     bust_cache("requests", self.to_user.pk)
     bust_cache("sent_requests", self.from_user.pk)
     return True
示例#2
0
 def cancel(self):
     """ cancel this friendship request """
     self.delete()
     friendship_request_canceled.send(sender=self)
     bust_cache('requests', self.to_user.pk)
     bust_cache('sent_requests', self.from_user.pk)
     return True
示例#3
0
 def cancel(self):
     """ cancel this friendship request """
     self.delete()
     friendship_request_canceled.send(sender=self)
     return True
示例#4
0
 def delete(self, using=None):
     super(FriendshipRequest, self).delete(using=using)
     bust_cache('requests', self.to_user.pk)
     bust_cache('sent_requests', self.from_user.pk)
     friendship_request_canceled.send(sender=self)
示例#5
0
 def cancel(self):
     """ cancel this friendship request """
     self.delete()
     friendship_request_canceled.send(sender=self)
     return True