X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e0de41ae1e67c230ad1e67f34f6f4f76e53d7234..57d57a9da6eaa250ed9c49c3a569b78b69fdf9bd:/apps/lessons/views.py diff --git a/apps/lessons/views.py b/apps/lessons/views.py index 69380d688..242526d86 100644 --- a/apps/lessons/views.py +++ b/apps/lessons/views.py @@ -11,7 +11,7 @@ def document_detail(request, slug): template_name = 'lessons/document_detail.html' if request.is_ajax(): template_name = 'lessons/ajax_document_detail.html' - + return object_detail(request, slug=slug, slug_field='slug',