  
  ``select_related()`` prohibits non-relational fields for nested relations
  -------------------------------------------------------------------------
  
  Django 1.8 added validation for non-relational fields in ``select_related()``::
  
      >>> Book.objects.select_related('title')
      Traceback (most recent call last):
      ...
      FieldError: Non-relational field given in select_related: 'title'
 
</s> remove But it didn't prohibit nested non-relation fields as it does now::
 </s> add But it didn't prohibit nested non-relation fields as it does now:

.. code-block:: pycon </s> remove added in Django 1.9::
 </s> add added in Django 1.9:

.. code-block:: pycon </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 </s> remove     }
 </s> add     },
  } </s> remove settings and can retrieve the format string for a given setting name::
 </s> add settings and can retrieve the format string for a given setting name:

.. code-block:: javascript
Django 1.8 added validation for non-relational fields in ``select_related()``:

.. code-block:: pycon
  
  ``select_related()`` prohibits non-relational fields for nested relations
  -------------------------------------------------------------------------
  
Django 1.8 added validation for non-relational fields in ``select_related()``:

.. code-block:: pycon
  
      >>> Book.objects.select_related('title')
      Traceback (most recent call last):
      ...
      FieldError: Non-relational field given in select_related: 'title'
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