willkg/richard — pull request #45 by squiddy (2012-03-21 13:42:58+00:00)
Title: Paginate news

This patch does 3 things:

1. Use django's render functions (replace `jingo.render` with `django.shortcuts.render` - it's the same thing).
2. Use generic views for the sitenews app (helps with 3.)
3. Add pagination to news

I'm personally not fully comfortable with class-based views yet (but the function-based ones are deprecated), but they help a lot. Adding pagination was dead easy.
They are a little verbose because we need additional context there. However I think we could move the `utils.title` logic to the template (it's basically display logic) by registering it as a function/filter.