fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix sciezki kopernika test form
[edumed.git]
/
catalogue
/
views.py
diff --git
a/catalogue/views.py
b/catalogue/views.py
index
0ce7454
..
4f9d78c
100644
(file)
--- a/
catalogue/views.py
+++ b/
catalogue/views.py
@@
-1,9
+1,9
@@
-import os.path
-from django.conf import settings
+# -*- coding: utf-8 -*-
from django.views.generic import DetailView, ListView
from django.views.generic import DetailView, ListView
-from .models import Lesson, Section
+
from curriculum.models import Level
from publishers.models import Publisher
from curriculum.models import Level
from publishers.models import Publisher
+from .models import Lesson
class LessonListView(ListView):
class LessonListView(ListView):
@@
-30,6
+30,6
@@
class LessonView(DetailView):
try:
context['publisher'] = Publisher.objects.get(
name=context['object'].dc.get('publisher', '').strip())
try:
context['publisher'] = Publisher.objects.get(
name=context['object'].dc.get('publisher', '').strip())
- except:
+ except
(Publisher.DoesNotExist, Publisher.MultipleObjectsReturned)
:
pass
return context
pass
return context