diff --git a/netbox_attachments/search.py b/netbox_attachments/search.py new file mode 100644 index 0000000..3927e3b --- /dev/null +++ b/netbox_attachments/search.py @@ -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), + ) diff --git a/netbox_attachments/version.py b/netbox_attachments/version.py index 0b2f79d..c72e379 100644 --- a/netbox_attachments/version.py +++ b/netbox_attachments/version.py @@ -1 +1 @@ -__version__ = "1.1.3" +__version__ = "1.1.4"