Enhancements
- #333 - Contracts can be found by the name of their external party: the contract list search also matches the name of the service provider or circuit provider, and a new filter
external_party_name(with__ic,__ieand__n) is available in the contract list, the REST API and GraphQL, next toservice_provider_idandprovider_id. The search still lists only Active contracts; global search is unchanged
Bug Fixes
- #317 - The external party columns of the contract and contract assignment tables can no longer be sorted, which raised a
FieldErrorand, because NetBox remembers the sort, broke the Contracts tab of every object
Other Changes
- #322 - New command
manage.py create_demo_datacreates tagged demo scenarios for development (contract lines of each billing method, hierarchy, invoices in each status, amendments, legacy data, numeric edge cases); it replaces thecreate-demo-data.pycustom script, refuses to run unlessDEVELOPER = Trueand supports--reset - #329 - The reverse name of a contract's tenant is now
netbox_contract_contractsinstead ofcontracts, so that it cannot clash with another plugin; code outside the plugin that readstenant.contractsmust use the new name, the screens, REST API and GraphQL are not affected, and the state-only migration 0056 changes no data
REST API Changes
netbox_contract.Contract- Added the filter
external_party_name(with__ic,__ieand__n) toGET /api/plugins/contracts/contracts/;qalso matches the name of the service provider or circuit provider
- Added the filter