diff --git a/pulpcore/app/serializers/base.py b/pulpcore/app/serializers/base.py index 9a6d2510fc..01e62b00f1 100644 --- a/pulpcore/app/serializers/base.py +++ b/pulpcore/app/serializers/base.py @@ -208,7 +208,7 @@ def to_representation(self, data): if repo_ver_mapping is not None: if repo_ver := repo_ver_mapping.get(data.object_id): return self.repo_ver_url(repo_ver, request=request) - return "" + return "" else: try: view_name = get_view_name_for_model(model, "detail") @@ -229,7 +229,7 @@ def to_representation(self, data): # Fallback onto normal lookup: # If the content object was deleted if data.content_object is None: - return "" + return "" try: if not data.content_object.complete: return ""