Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a fix for 977, couldn't reproduce the bug using unittests (but using the #982

Merged
merged 1 commit into from Sep 2, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 0 additions & 6 deletions cms/models/pagemodel.py
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down