Skip to content

Fixes: #161 - Use correct display_attrs on SupportSKUIndex and SupportContractIndex#163

Open
natecohen wants to merge 1 commit into
DanSheps:mainfrom
natecohen:fix/161-search-display-attrs
Open

Fixes: #161 - Use correct display_attrs on SupportSKUIndex and SupportContractIndex#163
natecohen wants to merge 1 commit into
DanSheps:mainfrom
natecohen:fix/161-search-display-attrs

Conversation

@natecohen

Copy link
Copy Markdown
Contributor

Fixes: #161 - Use correct display_attrs on SupportSKUIndex and SupportContractIndex

Searches matching SupportSKU or SupportContract cause FieldDoesNotExist errors.

This PR corrects the values and adds a test case to tests_search.py.

Updated SupportSKUIndex and SupportContractIndex and add test cases
SupportSKUIndex.display_attrs should only reference
fields that exist on the SupportSKU model.
"""
index = SupportSKUIndex()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix missing import

SupportContractIndex.display_attrs should only reference
fields that exist on the SupportContract model.
"""
index = SupportContractIndex()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix missing import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Netbox search failing if contracts have the searched text

2 participants