docs: def get_management_commands(settings):
      """
      Find registered managemend commands and return their classes
      as a :class:`dict`. Keys are names of the management command
      and values are classes of the management command.
      """
      app_commands = getattr(settings, 'MANAGEMENT_COMMANDS', ())
      commands = {}
      for name in itertools.chain(SHELTER_MANAGEMENT_COMMANDS, app_commands):
          command_obj = import_object(name)
          if not issubclass(command_obj, BaseCommand):
              raise ValueError("'%s' is not subclass of the BaseCommand" % name)
          commands[command_obj.name] = command_obj
      return commands