Issue 32

Fixes issue #32 

Compatible with django prior to 1.4