X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e0de41ae1e67c230ad1e67f34f6f4f76e53d7234..6e374f03fd5a0b9c7725f8268dd9c7d57d49ee89:/apps/lessons/views.py?ds=sidebyside diff --git a/apps/lessons/views.py b/apps/lessons/views.py index 69380d688..9314d1cac 100644 --- a/apps/lessons/views.py +++ b/apps/lessons/views.py @@ -3,7 +3,6 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django.views.generic.list_detail import object_detail -from catalogue import forms from lessons import models @@ -11,12 +10,10 @@ 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', queryset=models.Document.objects.all(), template_name=template_name, - extra_context={ - 'form': forms.SearchForm(), - }) + )