mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
15 lines
344 B
Python
15 lines
344 B
Python
from netbox.registry import registry
|
|
from utilities.object_types import object_type_identifier
|
|
|
|
__all__ = (
|
|
'get_indexer',
|
|
)
|
|
|
|
|
|
def get_indexer(object_type):
|
|
"""
|
|
Return the registered search indexer for the given ContentType.
|
|
"""
|
|
identifier = object_type_identifier(object_type)
|
|
return registry['search'].get(identifier)
|