Added suport for django 1.4