  
  What does a field class do?
  ---------------------------
  
  All of Django's fields (and when we say *fields* in this document, we always
  mean model fields and not :doc:`form fields </ref/forms/fields>`) are subclasses
  of :class:`django.db.models.Field`. Most of the information that Django records
  about a field is common to all fields -- name, help text, uniqueness and so
 
</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` </s> remove This ensures that the :meth:`to_python` method, documented below, will always be
called when the attribute is initialized.
 </s> add This ensures that the :meth:`.to_python` method, documented below, will always
be called when the attribute is initialized. </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.
.. class:: Field

  
  What does a field class do?
  ---------------------------
  
.. class:: Field

  All of Django's fields (and when we say *fields* in this document, we always
  mean model fields and not :doc:`form fields </ref/forms/fields>`) are subclasses
  of :class:`django.db.models.Field`. Most of the information that Django records
  about a field is common to all fields -- name, help text, uniqueness and so
keep keep keep add 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