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

Use Class Based Views for compatibility with django 1.5