Skip to content

Commit

Permalink
Adds fields from inherited serializer to comps types display
Browse files Browse the repository at this point in the history
'pulp_href' and other fields beyond those in the comps types themselves
are now displayed.

fixes #5857
https://pulp.plan.io/issues/5857
  • Loading branch information
CodeHeeler committed Dec 9, 2019
1 parent 5f7c6ee commit 41c1fd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES/5857.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adds fields from the inherited serializer to comps.xml content types' displayed fields
8 changes: 4 additions & 4 deletions pulp_rpm/app/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ class PackageGroupSerializer(NoArtifactContentSerializer):
)

class Meta:
fields = (
fields = NoArtifactContentSerializer.Meta.fields + (
'id', 'default', 'user_visible', 'display_order',
'name', 'description', 'packages', 'biarch_only',
'desc_by_lang', 'name_by_lang', 'digest', 'related_packages'
Expand Down Expand Up @@ -774,7 +774,7 @@ class PackageCategorySerializer(NoArtifactContentSerializer):
)

class Meta:
fields = (
fields = NoArtifactContentSerializer.Meta.fields + (
'id', 'name', 'description', 'display_order',
'group_ids', 'desc_by_lang', 'name_by_lang', 'digest',
'packagegroups'
Expand Down Expand Up @@ -840,7 +840,7 @@ class PackageEnvironmentSerializer(NoArtifactContentSerializer):
)

class Meta:
fields = (
fields = NoArtifactContentSerializer.Meta.fields + (
'id', 'name', 'description', 'display_order',
'group_ids', 'option_ids', 'desc_by_lang', 'name_by_lang',
'digest', 'packagegroups', 'optionalgroups'
Expand All @@ -863,7 +863,7 @@ class PackageLangpacksSerializer(NoArtifactContentSerializer):
)

class Meta:
fields = (
fields = NoArtifactContentSerializer.Meta.fields + (
'matches', 'digest'
)
model = PackageLangpacks
Expand Down

0 comments on commit 41c1fd7

Please sign in to comment.