#NEWLINE# @ receiver ( invoice_updated , dispatch_uid = 'django_stripe.receivers.sync_invoice' ) #NEWLINE# def sync_invoice( sender , invoice , refresh = True , **kwargs ) : #NEWLINE# #INDENT# if sender : #NEWLINE# #INDENT# invoice . refresh ( ) #NEWLINE# #UNINDENT# Invoice . objects . sync ( invoice )