compatibility with django 1.4
fix inheritance
Merge pull request #5 from predatell/master

Support for Django 1.4(LTS)