Browse files

fix for django 1.3 compatibility

  • Loading branch information...
1 parent d81f034 commit eb0770b7f0ce0c2a1f19def19947009ff2f1d269 @digi604 digi604 committed Sep 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cms/utils/page_resolver.py
View
2 cms/utils/page_resolver.py
@@ -54,7 +54,7 @@ def get_page_queryset_from_path(path, preview=False, site=None):
if not preview:
pages = pages.published(site)
else:
- pages = pages.filter(site_id=site.pk)
+ pages = pages.filter(site=site)
# Check if there are any pages
if not pages.all_root().exists():

0 comments on commit eb0770b

Please sign in to comment.