Move to the new behavior of the url template tag

That was introduced in Django 1.3. You now have to quote constants.
Move to class-based generic views

as function-based generic views were deprecated since Django 1.3 and are
gone in Django 1.5