@receiver(post_save, sender=UserProfile)
def user_profile_post_save_callback(sender, **kwargs):
 user_profile = kwargs['instance']
 emit_field_changed_events(user_profile, user_profile.user, sender._meta.db_table, excluded_fields=['meta'])

@ receiver ( post_save , sender = UserProfile ) def user_profile_post_save_callback ( sender , ** kwargs ) : user_profile = kwargs [ 'instance' ] emit_field_changed_events ( user_profile , user_profile . user , sender . _meta . db_table , excluded_fields = [ 'meta' ] )
emit analytics events after saving the userprofile .