make compatible with django 1.5

- replace function-based generic views
- imports
- update templates