1. John Costa
  2. jcosta-django-articles


Josh VanderLinden  committed 965c76b

Fixing various errors...

  • Participants
  • Parent commits 198d5e5
  • Branches default

Comments (0)

Files changed (3)

File articles/models.py

View file
  • Ignore whitespace
     def get_absolute_url(self):
-        return ('articles_display_tag', (self.clean,))
+        return ('articles_display_tag', (self.cleaned,))
     def cleaned(self):

File articles/templatetags/article_tags.py

View file
  • Ignore whitespace
             # 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.')
             # set the page parameter for this view

File articles/views.py

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