Just did a small change for django 1.4

Just did a small change for django 1.4