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
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
def cancel(self): """ cancel this friendship request """ self.delete() friendship_request_canceled.send(sender=self) return True
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)