add sibling pages to context

This commit is contained in:
Luke Hatcher 2012-05-22 00:37:46 -04:00
parent 9d424d91f2
commit b20c348d57

View file

@ -7,7 +7,9 @@ from cms.models import Page
def page(request, slug):
page = Page.objects.get(path=slug)
siblings = page.get_siblings(include_self=True)
return render_to_response("cms/page_detail.html", {
"page": page,
"siblings": siblings,
}, context_instance=RequestContext(request))