Skip to content

Commit

Permalink
Fixed package serialization so it displays content checksums.
Browse files Browse the repository at this point in the history
closes #8002
https://pulp.plan.io/issues/8002

[notest]
[nocoverage]
  • Loading branch information
ipanova committed Dec 18, 2020
1 parent 55f9956 commit a75405b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/8002.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed package serialization so it displays content checksums.
7 changes: 4 additions & 3 deletions pulp_rpm/app/serializers/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ def deferred_validate(self, data):
return data

class Meta:
fields = SingleArtifactContentUploadSerializer.Meta.fields + (
fields = (
ContentChecksumSerializer.Meta.fields
+ SingleArtifactContentUploadSerializer.Meta.fields + (
"name",
"epoch",
"version",
Expand All @@ -284,7 +286,6 @@ class Meta:
"suggests",
"enhances",
"recommends",
"sha256",
"supplements",
"location_base",
"location_href",
Expand All @@ -302,7 +303,7 @@ class Meta:
"size_package",
"time_build",
"time_file",
)
))
model = Package


Expand Down

0 comments on commit a75405b

Please sign in to comment.