  Python object type we want to store in the model's attribute.
  
  **Remember:** If your custom field needs the :meth:`to_python` method to be
  called when it is created, you should be using `The SubfieldBase metaclass`_
  mentioned earlier. Otherwise :meth:`to_python` won't be called automatically.
  
  Converting Python objects to query values
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  .. method:: get_prep_value(self, value)
 
</s> remove .. method:: get_prep_value(self, value)
 </s> add .. method:: Field.get_prep_value(self, value) </s> remove .. method:: to_python(self, value)
 </s> add .. method:: Field.to_python(self, value) </s> remove ``datetime``. The simplest way to handle this in a ``db_type()`` method is to
check the ``connection.settings_dict['ENGINE']`` attribute.
 </s> add ``datetime``. The simplest way to handle this in a :meth:`.db_type`
method is to check the ``connection.settings_dict['ENGINE']`` attribute. </s> remove This is the reverse of :meth:`to_python` when working with the
 </s> add This is the reverse of :meth:`.to_python` when working with the </s> remove If you use :class:`~django.db.models.SubfieldBase`, :meth:`to_python`
 </s> add If you use :class:`~django.db.models.SubfieldBase`, :meth:`.to_python`
mentioned earlier. Otherwise :meth:`.to_python` won't be called
automatically.
  Python object type we want to store in the model's attribute.
  
  **Remember:** If your custom field needs the :meth:`to_python` method to be
  called when it is created, you should be using `The SubfieldBase metaclass`_
mentioned earlier. Otherwise :meth:`.to_python` won't be called
automatically.
  
  Converting Python objects to query values
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  .. method:: get_prep_value(self, value)
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