Skip to content

Commit

Permalink
fix issue with changing is published value on submitting change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bragegs committed Jun 30, 2021
1 parent 89d09d0 commit 43276a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion publisher/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,12 @@ def submit_changes(self, overrides=None, dry_publish=False):
publish_obj.id = None
else:
publish_obj.id = draft_obj.publisher_linked.id
publish_obj.publisher_is_published = draft_obj.publisher_linked.publisher_is_published
publish_obj.publisher_published_at = draft_obj.publisher_linked.publisher_published_at

publish_obj.publisher_linked = None
publish_obj.publisher_draft = draft_obj
publish_obj.publisher_is_draft = False
# publish_obj.publisher_is_published = True

if not dry_publish:
now = timezone.now()
Expand Down

0 comments on commit 43276a4

Please sign in to comment.