mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
21 lines
397 B
Python
21 lines
397 B
Python
from netbox.search import SearchIndex, register_search
|
|
from . import models
|
|
|
|
|
|
@register_search
|
|
class JournalEntryIndex(SearchIndex):
|
|
model = models.JournalEntry
|
|
fields = (
|
|
('comments', 5000),
|
|
)
|
|
category = 'Journal'
|
|
|
|
|
|
@register_search
|
|
class WebhookEntryIndex(SearchIndex):
|
|
model = models.Webhook
|
|
fields = (
|
|
('name', 100),
|
|
('description', 500),
|
|
)
|