Always attempt to build HTML and fix_tree_tags when publishing a book. Also, some...
[wolnelektury.git] / apps / dictionary / urls.py
index 3c59be9..63e4bbd 100755 (executable)
@@ -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<letter>[a-z]|0-9)/$', NotesView.as_view(), name='dictionary_notes'),
 )