code: def check_groups_on_profile_update(sender, instance, created, *args, **kwargs):
      
      AutogroupsConfig.objects.update_groups_for_user(instance.user)
docs: Trigger check when main character or state changes.