fix for django1.5