Permalink
Browse files

yml was wrong it seems.

Next time I'll run the test suite locally before pushing :D
  • Loading branch information...
1 parent f3d9588 commit 03e7d01ba570808715ff84f47943e23dafb9ed7d Jonas Obrist committed Aug 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 cms/utils/page.py
View
@@ -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)
)

0 comments on commit 03e7d01

Please sign in to comment.