X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/e76fdcf2a2488b1787c74fe8dccfa38d7ac04c84..0b9065ff097553c60578c2b7f61cb0fee8dddd5e:/catalogue/urls.py?ds=sidebyside diff --git a/catalogue/urls.py b/catalogue/urls.py index 649691d..f2a8b08 100755 --- a/catalogue/urls.py +++ b/catalogue/urls.py @@ -1,12 +1,13 @@ -from django.conf.urls import patterns, include, url -from django.views.generic import DetailView, ListView -from .models import Section, Lesson +# -*- coding: utf-8 -*- +from django.conf.urls import patterns, url +from .views import LessonListView, LessonView -urlpatterns = patterns('', +urlpatterns = patterns( + '', url(r'^$', - ListView.as_view(model=Section), + LessonListView.as_view(), name="catalogue_lessons"), url(r'^(?P[^/]+)/$', - DetailView.as_view(model=Lesson), + LessonView.as_view(), name="catalogue_lesson"), )