Commits

James Bennett  committed 2b3e051

Add patterns for tag views for entries and links (p. 88).

  • Participants
  • Parent commits a65bc9d

Comments (0)

Files changed (1)

File coltrane/urls.py

     (r'^tags/$',
      'django.views.generic.list_detail.object_list',
      { 'queryset': Tag.objects.all() }),
+    (r'^tags/entries/(?P<tag>[-\w]+)/$',
+     'tagging.views.tagged_object_list',
+     { 'queryset_or_model': Entry,
+       'template_name': 'coltrane/entries_by_tag.html' }),
+    (r'^tags/links/(?P<tag>[-\w]+)/$',
+     'tagging.views.tagged_object_list',
+     { 'queryset_or_model': Link,
+       'template_name': 'coltrane/links_by_tag.html' }),
 )