X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5e983f642ea537225bf3a20e97fca281c8fdc915..aae232dcf008ab39db553bc1b20573fa00e3b191:/apps/dictionary/urls.py diff --git a/apps/dictionary/urls.py b/apps/dictionary/urls.py index 3c59be992..63e4bbd06 100755 --- a/apps/dictionary/urls.py +++ b/apps/dictionary/urls.py @@ -2,13 +2,11 @@ # 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 dictionary.models import Note +from django.conf.urls import patterns, url +from dictionary.views import NotesView - -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'^$', NotesView.as_view(), name='dictionary_notes'), + url(r'(?P[a-z]|0-9)/$', NotesView.as_view(), name='dictionary_notes'), )