parameters: (sender, instance, created, **kwargs)
docstring: Ensure there is a user group with the same name as the username.
docstring_summary: Ensure there is a user group with the same name as the username.
docstring_tokens: Ensure there is a user group with the same name as the username .
function: def create_user_group(sender, instance, created, **kwargs) -> None:
      """ Ensure there is a user group with the same name as the username.
      """
      if created and settings.NEW_USER_CREATE_USER_GROUP:
          Group.objects.get_or_create(name=instance.username)
function_tokens: def create_user_group ( sender , instance , created , * * kwargs ) -> None : if created and settings . NEW_USER_CREATE_USER_GROUP : Group . objects . get_or_create ( name = instance . username )