Skip to content

Commit

Permalink
Find attachments via global search engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Kani999 committed Mar 1, 2023
1 parent ce4cf83 commit 28cbef8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions netbox_attachments/search.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from netbox.search import SearchIndex, register_search
from .models import NetBoxAttachment


@register_search
class NetBoxAttachmentIndex(SearchIndex):
model = NetBoxAttachment
fields = (
('name', 100),
('comments', 5000),
)
2 changes: 1 addition & 1 deletion netbox_attachments/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.3"
__version__ = "1.1.4"

0 comments on commit 28cbef8

Please sign in to comment.