示例#1
0
 def post_save(cls, sender, instance, created, **kwargs):
     ripple.update_credit_limit(instance)
     if created:
         instance.update_trust_network()
示例#2
0
 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()
示例#3
0
 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()
示例#4
0
 def post_save(cls, sender, instance, created, **kwargs):
     ripple.update_credit_limit(instance)
     if created:
         instance.update_trust_network()