X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/07096ee18c78a330205e0f0a656dee1378ceb8c2..34511b8161f4fa25634a9659137a1143a1511c21:/catalogue/urls.py?ds=inline diff --git a/catalogue/urls.py b/catalogue/urls.py index 3b40c3a..3923f61 100755 --- a/catalogue/urls.py +++ b/catalogue/urls.py @@ -1,13 +1,11 @@ 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'^$', - SectionView.as_view(), + LessonListView.as_view(), name="catalogue_lessons"), url(r'^(?P[^/]+)/$', - DetailView.as_view(model=Lesson), + LessonView.as_view(), name="catalogue_lesson"), )