(self, name)
Returns the admin instance that was registered with the passed in
        name.
Returns the admin instance that was registered with the passed in
        name.
Returns the admin instance that was registered with the passed in name .
def get_admin_by_name(self, name):
        """
        Returns the admin instance that was registered with the passed in
        name.
        """
        for object_admin in self.registry.values():
            if object_admin.name == name:
                return object_admin
        raise ValueError("No object admin found with name {}".format(repr(name)))
def get_admin_by_name ( self , name ) : for object_admin in self . registry . values ( ) : if object_admin . name == name : return object_admin raise ValueError ( "No object admin found with name {}" . format ( repr ( name ) ) )