Deprecate the usage of all NestedSerializer classes #10082

Closed
opened 2025-12-29 21:26:41 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Aug 13, 2024).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Raise a deprecation warning whenever an obsolete nested serializer class (i.e. those defined in the nested_serializers module within each app) is imported.

Justification

As of NetBox v4.0 these are generally no longer used, and will be removed in a future release. Dynamic nesting support for primary serializers was introduced under #15087.

Impact

Usage of an obsolete nested serializer can be replaced by initializing the corresponding primary serializer with nested=True.

Originally created by @jeremystretch on GitHub (Aug 13, 2024). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Raise a deprecation warning whenever an obsolete nested serializer class (i.e. those defined in the `nested_serializers` module within each app) is imported. ### Justification As of NetBox v4.0 these are generally no longer used, and will be removed in a future release. Dynamic nesting support for primary serializers was introduced under #15087. ### Impact Usage of an obsolete nested serializer can be replaced by initializing the corresponding primary serializer with `nested=True`.
adam added the status: acceptedtype: deprecation labels 2025-12-29 21:26:41 +01:00
adam closed this issue 2025-12-29 21:26:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10082