Skip to content

Commit

Permalink
fixup! fix: exclude deleted drafts while publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Aug 9, 2024
1 parent 83abe51 commit bde3224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openedx_learning/apps/authoring/publishing/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def publish_all_drafts(
"""
draft_qset = Draft.objects \
.select_related("entity__published") \
.filter(entity__learning_package_id=learning_package_id, version__isnull=False) \
.filter(entity__learning_package_id=learning_package_id) \
.exclude(entity__published__version_id=F("version_id"))
return publish_from_drafts(
learning_package_id, draft_qset, message, published_at, published_by
Expand Down

0 comments on commit bde3224

Please sign in to comment.