porting to django 1.5

:8ball:  works for me. please validate :)