Updated redirect_to for compatibility with Django 1.5

From 1.3 Django introduced class-based views.  Function-based generic views have been deprecated in 1.5, and the function redirect_to no longer exists.

See: https://docs.djangoproject.com/en/1.4/topics/class-based-views/