Commits

Josh VanderLinden  committed 965c76b

Fixing various errors...

  • Participants
  • Parent commits 198d5e5

Comments (0)

Files changed (3)

File articles/models.py

 
     @models.permalink
     def get_absolute_url(self):
-        return ('articles_display_tag', (self.clean,))
+        return ('articles_display_tag', (self.cleaned,))
 
     @property
     def cleaned(self):

File articles/templatetags/article_tags.py

         try:
             # determine what view we are using based upon the path of this page
             view, args, kwargs = resolve(context['request'].path)
-        except (Resolver404, KeyError):
+        except (Resolver404, KeyError) as err:
+            print err
             raise ValueError('Invalid pagination page.')
         else:
             # set the page parameter for this view

File articles/views.py

     than duplicate a bunch of code.  I'll probably revisit this in the future.
     """
 
-    context = {}
+    context = {'request': request}
     if tag:
         try:
             tag = get_object_or_404(Tag, slug__iexact=tag)