Make DateField.to_python() handle a case where it can be passed a datetime object