fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prettier ie7 pd counter fix
[wolnelektury.git]
/
apps
/
lessons
/
views.py
diff --git
a/apps/lessons/views.py
b/apps/lessons/views.py
index
e226919
..
242526d
100644
(file)
--- a/
apps/lessons/views.py
+++ b/
apps/lessons/views.py
@@
-1,3
+1,7
@@
+# -*- 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
from django.views.generic.list_detail import object_detail
from catalogue import forms
from lessons import models
@@
-7,7
+11,7
@@
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',
return object_detail(request,
slug=slug,
slug_field='slug',