summaryrefslogtreecommitdiff
path: root/app/pages/views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2012-11-23 09:43:25 -0500
committerluxagraf <sng@luxagraf.net>2012-11-23 09:43:25 -0500
commit037fa4145d45c9e19139fbbf49c21e52a8579f5f (patch)
treef951c584aa5205ce62f6ddba36aef10da4accc80 /app/pages/views.py
parent83e49fa3c3ea9b9b3f74b7302df8825aaf4e3d18 (diff)
cut and pasted in changes from master on server to avoid merge conflict
Diffstat (limited to 'app/pages/views.py')
-rw-r--r--app/pages/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/pages/views.py b/app/pages/views.py
index 016c2ed..f69efaf 100644
--- a/app/pages/views.py
+++ b/app/pages/views.py
@@ -8,6 +8,7 @@ from pages.models import Page
def page(request,slug):
obj = get_object_or_404(Page, slug__exact=slug)
context = { 'object': obj,}
- return render_to_response('details/page.html', context, context_instance = RequestContext(request))
+ return render_to_response(["details/%s.html" % obj.slug, 'details/page.html'], context, context_instance = RequestContext(request))
+