1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django.views.generic.list_detail import object_detail
6 from catalogue import forms
7 from lessons import models
10 def document_detail(request, slug):
11 template_name = 'lessons/document_detail.html'
13 template_name = 'lessons/ajax_document_detail.html'
15 return object_detail(request,
18 queryset=models.Document.objects.all(),
19 template_name=template_name,
21 'form': forms.SearchForm(),