Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Thanks yml

  • Loading branch information...
commit f3d9588942969295dd79cd9f07c453f39a5761a4 1 parent f05717f
@ojii ojii authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 cms/utils/page.py
View
4 cms/utils/page.py
@@ -12,8 +12,8 @@ def is_valid_page_slug(page, parent, lang, slug, site):
from cms.models import Title
# Exclude the page with the publisher_state == page.PUBLISHER_STATE_DELETE
qs = Title.objects.filter(page__site=site, slug=slug).exclude(
- Q(page=page) |
- Q(page=page.publisher_public) |
+ Q(page=page) &
+ Q(page=page.publisher_public) &
Q(page__publisher_state=page.PUBLISHER_STATE_DELETE)
)
Please sign in to comment.
Something went wrong with that request. Please try again.