display changes, mostly in book boxes
[wolnelektury.git] / apps / dictionary / urls.py
index 3c59be9..435e0bd 100755 (executable)
@@ -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<letter>[a-z]|0-9)/$', 'letter_notes', name='dictionary_notes'),
 )