Permalink
Browse files

Merge pull request #982 from ojii/fix-977

a fix for 977, couldn't reproduce the bug using unittests (but using the
  • Loading branch information...
2 parents a85e488 + bdceb4e commit 5f3c331826d2028a61cbf5fb5cd03ca7540fca56 @chrisglass chrisglass committed Sep 2, 2011
Showing with 0 additions and 6 deletions.
  1. +0 −6 cms/models/pagemodel.py
View
@@ -307,7 +307,6 @@ def save(self, no_signals=False, change_state=True, commit=True,
# Published pages should always have a publication date
publish_directly, under_moderation = False, False
-
if self.publisher_is_draft:
# publisher specific stuff, but only on draft model, this is here
# because page initializes publish process
@@ -366,11 +365,6 @@ def save(self, no_signals=False, change_state=True, commit=True,
if commit and publish_directly:
self.publish()
-
- elif self.publisher_public and self.publisher_public.published:
- self.publisher_public.published = False
- self.publisher_public.save()
-
def save_base(self, *args, **kwargs):
"""Overriden save_base. If an instance is draft, and was changed, mark

0 comments on commit 5f3c331

Please sign in to comment.