db.models.Field.get_prep_value()

get_prep_value(value) [source]

value is the current value of the model’s attribute, and the method should return data in a format that has been prepared for use as a parameter in a query.

See Converting Python objects to query values for usage.

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

Please login to continue.