def post_save(cls, sender, instance, created, **kwargs): ripple.update_credit_limit(instance) if created: instance.update_trust_network()
def post_delete(cls, sender, instance, **kwargs): ripple.update_credit_limit(instance) # TODO: Do something more efficient than rebuild trust network # from scratch here. cls.objects.rebuild_trust_network()
def post_delete(cls, sender, instance, **kwargs): ripple.update_credit_limit(instance) # TODO: Do something more efficient than rebuild trust network # from scratch here. cls.objects.rebuild_trust_network()
def post_save(cls, sender, instance, created, **kwargs): ripple.update_credit_limit(instance) if created: instance.update_trust_network()