X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2b42a7314b63bed80a1561970ed0d1a065bce45f..0c0d8f5f4a9cfe0c5af038cf0f1c5637a13d1141:/apps/lessons/urls.py?ds=inline diff --git a/apps/lessons/urls.py b/apps/lessons/urls.py index d43ac3ab1..1d256374b 100644 --- a/apps/lessons/urls.py +++ b/apps/lessons/urls.py @@ -1,18 +1,19 @@ # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# 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'), )