X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e0de41ae1e67c230ad1e67f34f6f4f76e53d7234..0c1644b480a81a3b1d55efcd4fc328f7f7ed77a6:/apps/lessons/urls.py?ds=sidebyside diff --git a/apps/lessons/urls.py b/apps/lessons/urls.py index 69a47e3ea..4b6a3e10b 100644 --- a/apps/lessons/urls.py +++ b/apps/lessons/urls.py @@ -4,18 +4,13 @@ # from django.conf.urls.defaults import * from catalogue import forms -from lessons import models urlpatterns = patterns('', - url(r'^$', 'django.views.generic.list_detail.object_list', { - 'queryset': models.Document.objects.all(), - 'template_name': 'lessons/document_list.html', - 'extra_context': { - 'form': forms.SearchForm(), - }, + url(r'^$', 'django.views.generic.simple.direct_to_template', { + 'template': 'lessons/document_list.html', }, name='lessons_document_list'), - + url(r'^(?P[a-zA-Z0-9_-]+)/$', 'lessons.views.document_detail', name='lessons_document_detail'), )