  
  This results in the following general form for lookups involving rasters
  (assuming the ``Elevation`` model used in the :doc:`model-api`):
  
  .. code-block:: pycon
  
      >>> qs = Elevation.objects.filter(<field>__<lookup_type>=<parameter>)
      >>> qs = Elevation.objects.filter(<field>__<band_index>__<lookup_type>=<parameter>)
      >>> qs = Elevation.objects.filter(<field>__<lookup_type>=(<raster_input, <band_index>)
  
 
</s> remove .. code-block:: pycon
 </s> add .. code-block:: text </s> remove in model ``Bar``, instead of using the model name ``bar`` as the lookup::
 </s> add in model ``Bar``, instead of using the model name ``bar`` as the lookup:

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

.. code-block:: pytb </s> remove     >>>     category_rank=Window(
    >>>         Rank(), partition_by='category', order_by='-rating'
    >>>     ),
    >>>     scenes_count=Count('actors'),
    >>> ).filter(
    >>>     Q(category_rank__lte=3) | Q(title__contains='Batman')
    >>> )
 </s> add     ...     category_rank=Window(
    ...         Rank(), partition_by='category', order_by='-rating'
    ...     ),
    ...     scenes_count=Count('actors'),
    ... ).filter(
    ...     Q(category_rank__lte=3) | Q(title__contains='Batman')
    ... ) </s> remove added in Django 1.9::
 </s> add added in Django 1.9:

.. code-block:: pycon
.. code-block:: text
  
  This results in the following general form for lookups involving rasters
  (assuming the ``Elevation`` model used in the :doc:`model-api`):
  
.. code-block:: text
  
      >>> qs = Elevation.objects.filter(<field>__<lookup_type>=<parameter>)
      >>> qs = Elevation.objects.filter(<field>__<band_index>__<lookup_type>=<parameter>)
      >>> qs = Elevation.objects.filter(<field>__<lookup_type>=(<raster_input, <band_index>)
  
keep keep keep keep replace keep keep keep keep keep
 Refs #34140 -- Corrected rst code-block and various formatting issues in docs. 
docs/ref/contrib/gis/db-api.txt