Use Class Based Views for compatibility with django 1.5
Merge pull request #2 from Fantomas42/cbv

Use Class Based Views for compatibility with django 1.5