Drop backward compatibility for specifying queryset on custom script ObjectVar, MultiObjectVar #5995
Labels
status: accepted
This issue has been accepted for implementation
type: deprecation
Removal of existing functionality or behavior
Milestone
Proposed Changes
Drop backward compatibility for the
queryset
keyword argument for custom script ObjectVar and MultiObjectVar field types. These fields should be initialized using themodel
keyword instead. For example,becomes:
Justification
NetBox currently issues a warning when initializing these fields with
queryset
, and its use is deprecated. Themodel
parameter was introduced to eliminate confusion regarding filter of available options (which should be done using thequery_params
parameter).The text was updated successfully, but these errors were encountered: