From 9bc0f707e56b22b694cd09fc1a86c5a047ad61fd Mon Sep 17 00:00:00 2001 From: Abram Booth Date: Fri, 1 Dec 2023 14:03:21 -0500 Subject: [PATCH] remove "self" links --- addon_service/authorized_storage_account/serializers.py | 1 - addon_service/configured_storage_addon/serializers.py | 2 -- addon_service/external_storage_service/serializers.py | 1 - addon_service/internal_resource/serializers.py | 1 - addon_service/internal_user/serializers.py | 1 - 5 files changed, 6 deletions(-) diff --git a/addon_service/authorized_storage_account/serializers.py b/addon_service/authorized_storage_account/serializers.py index cecefd91..5a945ca5 100644 --- a/addon_service/authorized_storage_account/serializers.py +++ b/addon_service/authorized_storage_account/serializers.py @@ -34,7 +34,6 @@ class AuthorizedStorageAccountSerializer(serializers.HyperlinkedModelSerializer) many=True, queryset=ConfiguredStorageAddon.objects.all(), related_link_view_name=f"{RESOURCE_NAME}-related", - self_link_view_name=f"{RESOURCE_NAME}-relationships", ) included_serializers = { diff --git a/addon_service/configured_storage_addon/serializers.py b/addon_service/configured_storage_addon/serializers.py index 3afb999c..832be36a 100644 --- a/addon_service/configured_storage_addon/serializers.py +++ b/addon_service/configured_storage_addon/serializers.py @@ -17,13 +17,11 @@ class ConfiguredStorageAddonSerializer(serializers.HyperlinkedModelSerializer): queryset=ConfiguredStorageAddon.objects.all(), many=False, related_link_view_name=f"{RESOURCE_NAME}-related", - self_link_view_name=f"{RESOURCE_NAME}-relationships", ) internal_resource = ResourceRelatedField( queryset=InternalResource.objects.all(), many=False, related_link_view_name=f"{RESOURCE_NAME}-related", - self_link_view_name=f"{RESOURCE_NAME}-relationships", ) included_serializers = { diff --git a/addon_service/external_storage_service/serializers.py b/addon_service/external_storage_service/serializers.py index 666a3f3b..0c05520c 100644 --- a/addon_service/external_storage_service/serializers.py +++ b/addon_service/external_storage_service/serializers.py @@ -18,7 +18,6 @@ class ExternalStorageServiceSerializer(serializers.HyperlinkedModelSerializer): many=True, queryset=AuthorizedStorageAccount.objects.all(), related_link_view_name=f"{RESOURCE_NAME}-related", - self_link_view_name=f"{RESOURCE_NAME}-relationships", ) included_serializers = { diff --git a/addon_service/internal_resource/serializers.py b/addon_service/internal_resource/serializers.py index cd32984f..035097d7 100644 --- a/addon_service/internal_resource/serializers.py +++ b/addon_service/internal_resource/serializers.py @@ -17,7 +17,6 @@ class InternalResourceSerializer(serializers.HyperlinkedModelSerializer): many=True, queryset=ConfiguredStorageAddon.objects.all(), related_link_view_name=f"{RESOURCE_NAME}-related", - self_link_view_name=f"{RESOURCE_NAME}-relationships", ) included_serializers = { diff --git a/addon_service/internal_user/serializers.py b/addon_service/internal_user/serializers.py index 00cc27ce..7c609a9a 100644 --- a/addon_service/internal_user/serializers.py +++ b/addon_service/internal_user/serializers.py @@ -18,7 +18,6 @@ class InternalUserSerializer(serializers.HyperlinkedModelSerializer): many=True, queryset=AuthorizedStorageAccount.objects.all(), related_link_view_name=f"{RESOURCE_NAME}-related", - self_link_view_name=f"{RESOURCE_NAME}-relationships", ) included_serializers = {