book children are back, + related books
[wolnelektury.git] / apps / lessons / views.py
index e226919..9314d1c 100644 (file)
@@ -1,5 +1,8 @@
+# -*- coding: utf-8 -*-
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
 from django.views.generic.list_detail import object_detail
 from django.views.generic.list_detail import object_detail
-from catalogue import forms
 from lessons import models
 
 
 from lessons import models
 
 
@@ -7,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'
     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,
     return object_detail(request,
         slug=slug,
         slug_field='slug',
         queryset=models.Document.objects.all(),
         template_name=template_name,
-        extra_context={
-            'form': forms.SearchForm(),
-        })
+    )