X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5e983f642ea537225bf3a20e97fca281c8fdc915..c028a70a6130acfe7e86f37f1a9f2e6b36a26194:/apps/dictionary/urls.py?ds=inline diff --git a/apps/dictionary/urls.py b/apps/dictionary/urls.py index 3c59be992..435e0bd6b 100755 --- a/apps/dictionary/urls.py +++ b/apps/dictionary/urls.py @@ -3,12 +3,10 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django.conf.urls.defaults import * -from dictionary.models import Note -all_notes = Note.objects.all() - -urlpatterns = patterns('django.views.generic.list_detail', - url(r'^$', 'object_list', {'queryset': all_notes}), +urlpatterns = patterns('dictionary.views', + url(r'^$', 'letter_notes', name='dictionary_notes'), + url(r'(?P[a-z]|0-9)/$', 'letter_notes', name='dictionary_notes'), )