aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/journal/urls.py')
-rw-r--r--bn_django/journal/urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bn_django/journal/urls.py b/bn_django/journal/urls.py
index d65d52a..1730ac7 100644
--- a/bn_django/journal/urls.py
+++ b/bn_django/journal/urls.py
@@ -7,6 +7,6 @@ urlpatterns = patterns('django.views.generic.list_detail',
(r'^$', 'object_list',
dict(queryset=Entry.objects.order_by('-date'),
paginate_by=35, allow_empty=False)),
- (r'^(?P<slug>)/$', 'object_detail',
- dict(info_dict, queryset=Entry.objects.all(), slug_field='slug')),
+ (r'^(?P<slug>[\d\w-]+)/$', 'object_detail',
+ dict(queryset=Entry.objects.all(), slug_field='slug')),
)