diff options
Diffstat (limited to 'app/pages/views.py')
-rw-r--r-- | app/pages/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/pages/views.py b/app/pages/views.py index e933399..934cb40 100644 --- a/app/pages/views.py +++ b/app/pages/views.py @@ -3,6 +3,6 @@ from django.template import RequestContext from pages.models import Page def page(request, slug): - obj = "" #get_object_or_404(Page, slug__exact=slug) + obj = get_object_or_404(Page, slug__exact=slug) context = {'object': obj, } return render_to_response(["details/%s.html" % obj.slug, 'details/page.html'], context, context_instance=RequestContext(request)) |