Django uses the *Field class get_prep_value and from_db_value to decide how to convert a python value into whatever the database needs and viceversa