Compatibility fix for django 1.5
Merge pull request #2 from Fantomas42/django1.5

Compatibility fix for django 1.5