db.models.Field.get_db_prep_value()

get_db_prep_value(value, connection, prepared=False) [source]

Converts value to a backend-specific value. By default it returns value if prepared=True and get_prep_value() if is False.

See Converting query values to database values for usage.

When loading data, from_db_value() is used:

doc_Django
2016-10-09 18:35:25
Comments
Leave a Comment

Please login to continue.