X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1f74e9a6dc7dd2303f3271ccf4c7a3eb59e3e27e..cce0cc98d6a95c2fd1517dca73ca2c3b682318f9:/apps/lessons/urls.py?ds=sidebyside diff --git a/apps/lessons/urls.py b/apps/lessons/urls.py index 69a47e3ea..1d256374b 100644 --- a/apps/lessons/urls.py +++ b/apps/lessons/urls.py @@ -4,18 +4,16 @@ # 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', + url(r'^$', 'django.views.generic.simple.direct_to_template', { + 'template': 'lessons/document_list.html', 'extra_context': { 'form': forms.SearchForm(), }, }, name='lessons_document_list'), - + url(r'^(?P[a-zA-Z0-9_-]+)/$', 'lessons.views.document_detail', name='lessons_document_detail'), )