fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zmiana kolejnosci w menu
[edumed.git]
/
catalogue
/
urls.py
diff --git
a/catalogue/urls.py
b/catalogue/urls.py
index
3b40c3a
..
3923f61
100755
(executable)
--- a/
catalogue/urls.py
+++ b/
catalogue/urls.py
@@
-1,13
+1,11
@@
from django.conf.urls import patterns, include, url
from django.conf.urls import patterns, include, url
-from django.views.generic import DetailView, ListView
-from .models import Section, Lesson
-from .views import SectionView
+from .views import LessonListView, LessonView
urlpatterns = patterns('',
url(r'^$',
urlpatterns = patterns('',
url(r'^$',
-
Section
View.as_view(),
+
LessonList
View.as_view(),
name="catalogue_lessons"),
url(r'^(?P<slug>[^/]+)/$',
name="catalogue_lessons"),
url(r'^(?P<slug>[^/]+)/$',
-
DetailView.as_view(model=Lesson
),
+
LessonView.as_view(
),
name="catalogue_lesson"),
)
name="catalogue_lesson"),
)