  -------------
  
  Clearly, the power of relational databases lies in relating tables to each
  other. Django offers ways to define the three most common types of database
  relationships: Many-to-one, many-to-many and one-to-one.
  
  Many-to-one relationships
  ~~~~~~~~~~~~~~~~~~~~~~~~~
  
  To define a many-to-one relationship, use :class:`~django.db.models.ForeignKey`.
 
</s> remove define a ``OneToOneField`` on your model, instances of that model will have
access to the related object via a simple attribute of the model.
 </s> add define a :class:`~django.db.models.OneToOneField` on your model, instances of
that model will have access to the related object via a simple attribute of the
model. </s> remove ``first_name`` and ``last_name`` are :term:`fields <field>` of the model. Each
 </s> add ``first_name`` and ``last_name`` are :ref:`fields` of the model. Each </s> remove of `methods automatically given to each model <model-instance-methods>`. You can
override most of these -- see `overriding predefined model methods`_, below --
but there are a couple that you'll almost always want to define:
 </s> add of :ref:`methods automatically given to each model <model-instance-methods>`.
You can override most of these -- see `overriding predefined model methods`_,
below -- but there are a couple that you'll almost always want to define: </s> remove mixing and matching pizzas and toppings, a standard ``ManyToManyField``
is all you need. However, sometimes you may need to associate data with the
relationship between two models. 
 </s> add mixing and matching pizzas and toppings, a standard :class:`~django.db.models.ManyToManyField` is all you need. However, sometimes
you may need to associate data with the relationship between two models. </s> remove object with a many-to-one relationship to itself) and :ref:`relationsips to
 </s> add object with a many-to-one relationship to itself) and :ref:`relationships to
relationships: many-to-one, many-to-many and one-to-one.
  -------------
  
  Clearly, the power of relational databases lies in relating tables to each
  other. Django offers ways to define the three most common types of database
relationships: many-to-one, many-to-many and one-to-one.
  
  Many-to-one relationships
  ~~~~~~~~~~~~~~~~~~~~~~~~~
  
  To define a many-to-one relationship, use :class:`~django.db.models.ForeignKey`.
keep keep keep keep replace keep keep keep keep keep
 Fixed a handful of typo/markup problems in the docs. Patch from Daniel Roseman.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8540 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
docs/topics/db/models.txt