Skip to content

Commit

Permalink
Set is_published=None when unpublished Publishable
Browse files Browse the repository at this point in the history
  • Loading branch information
psiemens committed Oct 31, 2018
1 parent 614184a commit d9a0842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dispatch/modules/content/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def publish(self):

def unpublish(self):
type(self).objects.filter(parent=self.parent, is_published=True).update(is_published=None, published_at=None)
self.is_published = False
self.is_published = None

# Unset published version for all articles
type(self).objects.filter(parent=self.parent).update(published_version=None)
Expand Down

0 comments on commit d9a0842

Please sign in to comment.