Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

yml was wrong it seems.

Next time I'll run the test suite locally before pushing :D
  • Loading branch information...
commit 03e7d01ba570808715ff84f47943e23dafb9ed7d 1 parent f3d9588
@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.