X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1f74e9a6dc7dd2303f3271ccf4c7a3eb59e3e27e..34ab7bebbd8dd9f8e7018b7d8dba10d7db1afd41:/apps/lessons/views.py?ds=inline 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',