modified field type to work on django 1.7