Compatibility fix for django 1.5
Merge pull request #1 from Fantomas42/cbv

Compatibility fix for django 1.5