Skip to content

Commit

Permalink
Merge pull request #28 from Kani999/add_attachments_to_search
Browse files Browse the repository at this point in the history
Find attachments via global search engine
  • Loading branch information
Kani999 authored Mar 1, 2023
2 parents ce4cf83 + 28cbef8 commit b2edf7a
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 b2edf7a

Please sign in to comment.