Skip to content

Conversation

@jsenecal
Copy link
Collaborator

@jsenecal jsenecal commented Jan 8, 2026

Summary

  • Fix SupportContractAssignmentIndex.display_attrs referencing fields from SupportContract instead of SupportContractAssignment
  • Fix LicenseAssignmentIndex.display_attrs referencing fields from License instead of LicenseAssignment
  • Add regression tests for display_attrs validation

Test plan

  • New tests pass: test_search.py
  • Full test suite passes (392 tests)

…istent fields

SupportContractAssignmentIndex and LicenseAssignmentIndex had display_attrs
that referenced fields from their parent models instead of their own fields.

This caused a FieldDoesNotExist error when searching for devices with
support contract assignments.

Changes:
- SupportContractAssignmentIndex: use contract, sku, device instead of vendor, start, renewal
- LicenseAssignmentIndex: use license, vendor, device instead of manufacturer
- Add regression tests for display_attrs validation
@jsenecal jsenecal force-pushed the fix/issue-133-search-display-attrs branch from 3e07673 to f1fd3d5 Compare January 8, 2026 18:17
@jsenecal jsenecal requested a review from DanSheps January 8, 2026 18:18
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.

1 participant