X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/e76fdcf2a2488b1787c74fe8dccfa38d7ac04c84..5ca33d388049e1d2dd7e5fd1a31fdc86ca959e5d:/catalogue/urls.py?ds=sidebyside diff --git a/catalogue/urls.py b/catalogue/urls.py index 649691d..3b40c3a 100755 --- a/catalogue/urls.py +++ b/catalogue/urls.py @@ -1,10 +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 urlpatterns = patterns('', url(r'^$', - ListView.as_view(model=Section), + SectionView.as_view(), name="catalogue_lessons"), url(r'^(?P[^/]+)/$', DetailView.as_view(model=Lesson),