  
  .. versionadded:: 1.2
     This method was factored out of ``get_db_prep_value()``
  
  This is the reverse of :meth:`to_python` when working with the
  database backends (as opposed to serialization). The ``value``
  parameter is the current value of the model's attribute (a field has
  no reference to its containing model, so it cannot retrieve the value
  itself), and the method should return data in a format that has been
  prepared for use as a parameter in a query.
 
</s> remove .. method:: get_prep_value(self, value)
 </s> add .. method:: Field.get_prep_value(self, value) </s> remove :meth:`get_prep_lookup` performs the first phase of lookup preparation,
 </s> add :meth:`.get_prep_lookup` performs the first phase of lookup preparation, </s> remove This method is called just prior to :meth:`get_db_prep_save` and should return
 </s> add This method is called just prior to :meth:`.get_db_prep_save` and should return </s> remove should be made in the call to :meth:`get_db_prep_value`.
 </s> add should be made in the call to :meth:`.get_db_prep_value`. </s> remove :meth:`get_db_prep_value` is the method where those conversions should
 </s> add :meth:`.get_db_prep_value` is the method where those conversions should
This is the reverse of :meth:`.to_python` when working with the
  
  .. versionadded:: 1.2
     This method was factored out of ``get_db_prep_value()``
  
This is the reverse of :meth:`.to_python` when working with the
  database backends (as opposed to serialization). The ``value``
  parameter is the current value of the model's attribute (a field has
  no reference to its containing model, so it cannot retrieve the value
  itself), and the method should return data in a format that has been
  prepared for use as a parameter in a query.
keep keep keep keep replace keep keep keep keep keep
 Fixed #15308 -- Sphinx/reST fixes for the Custom Model Fields docs.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15547 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
docs/howto/custom-model-fields.txt