be compliant with django 1.5