so apparent memory leak seems to be just connection.queries debugging of django.
[wolnelektury.git] / apps / lessons / views.py
index 242526d..9314d1c 100644 (file)
@@ -3,7 +3,6 @@
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
 from django.views.generic.list_detail import object_detail
 # 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
 
 
 from lessons import models
 
 
@@ -17,6 +16,4 @@ def document_detail(request, slug):
         slug_field='slug',
         queryset=models.Document.objects.all(),
         template_name=template_name,
         slug_field='slug',
         queryset=models.Document.objects.all(),
         template_name=template_name,
-        extra_context={
-            'form': forms.SearchForm(),
-        })
+    )