Skip to content

Commit

Permalink
Fixing content serializer bugs
Browse files Browse the repository at this point in the history
fixes #575

(cherry picked from commit 0429ddd)
  • Loading branch information
daviddavis authored and quba42 committed Jul 14, 2022
1 parent a5faa25 commit d6852b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGES/575.bugfix
@@ -0,0 +1,2 @@
Fixed several serializer bugs preventing the manual creation of structure content of type
``ReleaseArchitecture``, ``ReleaseComponent``, and ``PackageReleaseComponent``.
10 changes: 5 additions & 5 deletions pulp_deb/app/serializers/content_serializers.py
Expand Up @@ -617,7 +617,7 @@ class ReleaseArchitectureSerializer(NoArtifactContentSerializer):
help_text="Release this architecture is contained in.",
many=False,
queryset=Release.objects.all(),
view_name="deb-release-detail",
view_name="content-deb/releases-detail",
)

class Meta(NoArtifactContentSerializer.Meta):
Expand All @@ -635,7 +635,7 @@ class ReleaseComponentSerializer(NoArtifactContentSerializer):
help_text="Release this component is contained in.",
many=False,
queryset=Release.objects.all(),
view_name="deb-release-detail",
view_name="content-deb/releases-detail",
)

class Meta(NoArtifactContentSerializer.Meta):
Expand All @@ -651,14 +651,14 @@ class PackageReleaseComponentSerializer(NoArtifactContentSerializer):
package = DetailRelatedField(
help_text="Package that is contained in release_comonent.",
many=False,
queryset=ReleaseComponent.objects.all(),
view_name="deb-release_component-detail",
queryset=Package.objects.all(),
view_name="content-deb/packages-detail",
)
release_component = DetailRelatedField(
help_text="ReleaseComponent this package is contained in.",
many=False,
queryset=ReleaseComponent.objects.all(),
view_name="deb-release_component-detail",
view_name="content-deb/release_components-detail",
)

class Meta(NoArtifactContentSerializer.Meta):
Expand Down

0 comments on commit d6852b6

Please sign in to comment.