  
  Converting database values to Python objects
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  .. method:: to_python(self, value)
  
  Converts a value as returned by your database (or a serializer) to a Python
  object.
  
  The default implementation simply returns ``value``, for the common case in
 
</s> remove :meth:`db_type`. This will cause Django's SQL creation code to skip over this
field. You are then responsible for creating the column in the right table in
some other way, of course, but this gives you a way to tell Django to get out of
the way.
 </s> add :meth:`.db_type`. This will cause Django's SQL creation code to skip
over this field. You are then responsible for creating the column in the right
table in some other way, of course, but this gives you a way to tell Django to
get out of the way. </s> remove .. method:: get_prep_value(self, value)
 </s> add .. method:: Field.get_prep_value(self, value) </s> remove mentioned earlier. Otherwise :meth:`to_python` won't be called automatically.
 </s> add mentioned earlier. Otherwise :meth:`.to_python` won't be called
automatically. </s> remove .. class:: django.db.models.SubfieldBase

 </s> add  </s> remove ``get_db_prep_value``, you shouldn't need to implement this method
 </s> add :meth:`.get_db_prep_value`, you shouldn't need to implement this method
.. method:: Field.to_python(self, value)
  
  Converting database values to Python objects
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
.. method:: Field.to_python(self, value)
  
  Converts a value as returned by your database (or a serializer) to a Python
  object.
  
  The default implementation simply returns ``value``, for the common case in
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