Changed generic function-based views to normal views for django 1-5+ compatibility.