Skip to content

Commit

Permalink
Hide publications that aren't complete
Browse files Browse the repository at this point in the history
fixes #6974

[nocoverage]

(cherry picked from commit e788b9c)
  • Loading branch information
David Davis authored and Travis CI User committed Jun 20, 2020
1 parent 46a50c0 commit bbcf904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/6974.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updating API to not return publications that aren't complete.
2 changes: 1 addition & 1 deletion pulp_rpm/app/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class RpmPublicationViewSet(PublicationViewSet):
"""

endpoint_name = 'rpm'
queryset = RpmPublication.objects.all()
queryset = RpmPublication.objects.exclude(complete=False)
serializer_class = RpmPublicationSerializer

@swagger_auto_schema(
Expand Down

0 comments on commit bbcf904

Please sign in to comment.