  
  In older versions, :attr:`~django.db.models.Options.default_related_name`
  couldn't be used as a query lookup. This is fixed and support for the old
  lookup name is deprecated. For example, since ``default_related_name`` is set
  in model ``Bar``, instead of using the model name ``bar`` as the lookup::
  
      >>> bar = Bar.objects.get(pk=1)
      >>> Foo.objects.get(bar=bar)
  
  use the default_related_name ``bars``::
 
</s> remove use the default_related_name ``bars``::
 </s> add use the default_related_name ``bars``:

.. code-block:: pycon </s> remove This results in the error::
 </s> add This results in the error:

.. code-block:: pytb </s> remove .. code-block:: pycon
 </s> add .. code-block:: text </s> remove .. code-block:: pycon
 </s> add .. code-block:: text </s> remove     >>> mapping = {'name' : 'str', # The 'name' model field maps to the 'str' layer field.
                   'poly' : 'POLYGON', # For geometry fields use OGC name.
                   } # The mapping is a dictionary
 </s> add     >>> mapping = {
    ...     'name': 'str', # The 'name' model field maps to the 'str' layer field.
    ...     'poly': 'POLYGON', # For geometry fields use OGC name.
    ... } # The mapping is a dictionary
in model ``Bar``, instead of using the model name ``bar`` as the lookup:

.. code-block:: pycon
  
  In older versions, :attr:`~django.db.models.Options.default_related_name`
  couldn't be used as a query lookup. This is fixed and support for the old
  lookup name is deprecated. For example, since ``default_related_name`` is set
in model ``Bar``, instead of using the model name ``bar`` as the lookup:

.. code-block:: pycon
  
      >>> bar = Bar.objects.get(pk=1)
      >>> Foo.objects.get(bar=bar)
  
  use the default_related_name ``bars``::
keep keep keep keep replace keep keep keep keep keep
 Refs #34140 -- Corrected rst code-block and various formatting issues in docs. 
docs/releases/1.10.txt