donwload links
[edumed.git] / catalogue / urls.py
index 649691d..61e9e9a 100755 (executable)
@@ -1,12 +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, LessonView
 
 urlpatterns = patterns('',
     url(r'^$',
 
 urlpatterns = patterns('',
     url(r'^$',
-        ListView.as_view(model=Section),
+        SectionView.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"),
 )