Skip to content

Commit

Permalink
Add display_attrs on SearchIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
Alef-Burzmali committed Jan 21, 2024
1 parent 8de1189 commit b90e971
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions netbox_data_flows/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class ApplicationIndex(SearchIndex):
("description", 500),
("comments", 5000),
)
display_attrs = ("role",)


class DataFlowIndex(SearchIndex):
Expand All @@ -28,6 +29,12 @@ class DataFlowIndex(SearchIndex):
("description", 500),
("comments", 5000),
)
display_attrs = (
"application",
"group",
"protocol",
"status",
)


class DataFlowGroupIndex(SearchIndex):
Expand All @@ -38,6 +45,10 @@ class DataFlowGroupIndex(SearchIndex):
("description", 500),
("comments", 5000),
)
display_attrs = (
"application",
"status",
)


class ObjectAliasIndex(SearchIndex):
Expand All @@ -46,6 +57,10 @@ class ObjectAliasIndex(SearchIndex):
("name", 100),
("description", 500),
)
display_attrs = (
"application",
"status",
)


indexes = (
Expand Down

0 comments on commit b90e971

Please sign in to comment.