fix for django 1.7 issue #124

quick fix