X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9c5d9a4e77a10b4e60d89d3890e49002bd7f3993..7583035c199c378c8d019937d155992709536b91:/apps/lessons/views.py?ds=inline diff --git a/apps/lessons/views.py b/apps/lessons/views.py deleted file mode 100644 index 242526d86..000000000 --- a/apps/lessons/views.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- 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 catalogue import forms -from lessons import models - - -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(), - })