mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
14 lines
253 B
Python
14 lines
253 B
Python
![]() |
from netbox.search import SearchIndex
|
||
|
from .models import DummyModel
|
||
|
|
||
|
|
||
|
class DummyModelIndex(SearchIndex):
|
||
|
model = DummyModel
|
||
|
queryset = DummyModel.objects.all()
|
||
|
url = 'plugins:dummy_plugin:dummy_models'
|
||
|
|
||
|
|
||
|
indexes = (
|
||
|
DummyModelIndex,
|
||
|
)
|