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