From f68a63255b6621d66cff08378e6d18cbf7e81410 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Mon, 10 Apr 2023 10:40:56 -0400 Subject: [PATCH] #11029: Cleanup & changelog --- docs/release-notes/version-3.5.md | 3 +++ netbox/dcim/api/serializers.py | 3 ++- ...ange_logging.py => 0172_cabletermination_change_logging.py} | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) rename netbox/dcim/migrations/{0168_cabletermination_change_logging.py => 0172_cabletermination_change_logging.py} (91%) diff --git a/docs/release-notes/version-3.5.md b/docs/release-notes/version-3.5.md index 2075ebc86..78314e874 100644 --- a/docs/release-notes/version-3.5.md +++ b/docs/release-notes/version-3.5.md @@ -54,6 +54,7 @@ Two new webhook trigger events have been introduced: `job_start` and `job_end`. * [#10242](https://github.com/netbox-community/netbox/issues/10242) - Redirect to filtered objects list after bulk import * [#10374](https://github.com/netbox-community/netbox/issues/10374) - Require unique tenant names & slugs per group * [#10729](https://github.com/netbox-community/netbox/issues/10729) - Add date & time custom field type +* [#11029](https://github.com/netbox-community/netbox/issues/11029) - Enable change logging for cable terminations * [#11254](https://github.com/netbox-community/netbox/issues/11254) - Introduce the `X-Request-ID` HTTP header to annotate the unique ID of each request for change logging * [#11291](https://github.com/netbox-community/netbox/issues/11291) - Optimized GraphQL API request handling * [#11440](https://github.com/netbox-community/netbox/issues/11440) - Add an `enabled` field for device type interfaces @@ -111,6 +112,8 @@ Two new webhook trigger events have been introduced: `job_start` and `job_end`. * Added the optional `account` foreign key to ProviderAccount * circuits.Provider * Removed the `account` field +* dcim.CableTermination + * Added `default_platform` foreign key (optional) * dcim.DeviceType * Added `default_platform` foreign key (optional) * dcim.InterfaceTemplate diff --git a/netbox/dcim/api/serializers.py b/netbox/dcim/api/serializers.py index 29eaf2016..8d620c408 100644 --- a/netbox/dcim/api/serializers.py +++ b/netbox/dcim/api/serializers.py @@ -1097,7 +1097,8 @@ class CableTerminationSerializer(NetBoxModelSerializer): class Meta: model = CableTermination fields = [ - 'id', 'url', 'display', 'cable', 'cable_end', 'termination_type', 'termination_id', 'termination' + 'id', 'url', 'display', 'cable', 'cable_end', 'termination_type', 'termination_id', 'termination', + 'created', 'last_updated', ] @extend_schema_field(serializers.JSONField(allow_null=True)) diff --git a/netbox/dcim/migrations/0168_cabletermination_change_logging.py b/netbox/dcim/migrations/0172_cabletermination_change_logging.py similarity index 91% rename from netbox/dcim/migrations/0168_cabletermination_change_logging.py rename to netbox/dcim/migrations/0172_cabletermination_change_logging.py index 4405a0a8e..a187d5acb 100644 --- a/netbox/dcim/migrations/0168_cabletermination_change_logging.py +++ b/netbox/dcim/migrations/0172_cabletermination_change_logging.py @@ -4,7 +4,7 @@ from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ - ('dcim', '0167_module_status'), + ('dcim', '0171_devicetype_add_bridge'), ] operations = [