@receiver(post_save, sender=User)<EOL>@receiver(post_save, sender=StaffMember)<EOL>@receiver(post_save, sender=Location)<EOL>def updateTransactionParty(sender,instance,**kwargs):
if '<STR_LIT>' in sys.argv or ('<STR_LIT>' in kwargs and kwargs['<STR_LIT>']):<EOL><INDENT>return<EOL><DEDENT>logger.debug('<STR_LIT>' % (instance.__class__.__name__, instance.id))<EOL>party = getattr(instance,'<STR_LIT>',None)<EOL>if party:<EOL><INDENT>party.save(updateBy=instance)<EOL><DEDENT>
If a User, StaffMember, or Location is updated, and there exists an associated
TransactionParty, then the name and other attributes of that party should be updated
to reflect the new information.