X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/070d93a055b8dfd594664db308b310785d59af70..a6145bb10676f304d4a3de6789c383f1f9326055:/apps/dictionary/urls.py diff --git a/apps/dictionary/urls.py b/apps/dictionary/urls.py index 84a30d7e0..63e4bbd06 100755 --- a/apps/dictionary/urls.py +++ b/apps/dictionary/urls.py @@ -2,11 +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 django.conf.urls import patterns, url +from dictionary.views import NotesView urlpatterns = patterns('dictionary.views', - url(r'^$', 'letter_notes', name='dictionary_notes'), - url(r'(?P[a-z])/$', 'letter_notes', name='dictionary_notes'), + url(r'^$', NotesView.as_view(), name='dictionary_notes'), + url(r'(?P[a-z]|0-9)/$', NotesView.as_view(), name='dictionary_notes'), )