Introduce Django 1.4 compatibility

Fixes #88. The tests aren't being executed at all (I think they need to be rewritten actually) but the example app works fine.