Changeset - b20c348d57d2
[Not reviewed]
0 1 0
Luke Hatcher - 12 years ago 2012-05-22 04:37:46
lukeman@gmail.com
add sibling pages to context
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
symposion_project/apps/cms/views.py
Show inline comments
...
 
@@ -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))
0 comments (0 inline, 0 general)