1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django.conf.urls.defaults import *
6 from catalogue import forms
7 from lessons import models
10 urlpatterns = patterns('',
11 url(r'^$', 'django.views.generic.list_detail.object_list', {
12 'queryset': models.Document.objects.all(),
13 'template_name': 'lessons/document_list.html',
15 'form': forms.SearchForm(),
17 }, name='lessons_document_list'),
19 url(r'^(?P<slug>[a-zA-Z0-9_-]+)/$', 'lessons.views.document_detail', name='lessons_document_detail'),