Skip to content

[Housekeeping]: Use JSONField for assigned_object serializer #247

@pheus

Description

@pheus

Proposed Changes

  • Replace DictField with JSONField for the assigned_object serializer.
  • Ensure the schema field returns None when assigned_object is missing, without causing errors.
  • Add a string representation for the "display" attribute in the ACLInterfaceAssignment API.

Justification

  • Since this is a REST API, using JSONField is more appropriate and aligns with NetBox core best practices.
  • The "display" attribute is a common pattern in the NetBox API, so it should be included in ACLInterfaceAssignment for consistency.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions