Skip to content

Commit

Permalink
remove "self" links
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Dec 1, 2023
1 parent c0ae6da commit 9bc0f70
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion addon_service/authorized_storage_account/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 0 additions & 2 deletions addon_service/configured_storage_addon/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
1 change: 0 additions & 1 deletion addon_service/external_storage_service/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
1 change: 0 additions & 1 deletion addon_service/internal_resource/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
1 change: 0 additions & 1 deletion addon_service/internal_user/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 9bc0f70

Please sign in to comment.