Fix for django 1.4
Merge pull request #29 from nephila/fix_dj14

Fix for django 1.4