  
  Geographic queries with geometries take the following general form (assuming
  the ``Zipcode`` model used in the :doc:`model-api`):
  
  .. code-block:: pycon
  
      >>> qs = Zipcode.objects.filter(<field>__<lookup_type>=<parameter>)
      >>> qs = Zipcode.objects.exclude(...)
  
  For example:
 
</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 Distance lookups take the following form::
 </s> add Distance lookups take the following form: </s> remove         >>> wkt = 'GEOGCS["WGS 84", DATUM["WGS_1984, ... AUTHORITY["EPSG","4326"]]')
 </s> add         >>> wkt = 'GEOGCS["WGS 84", DATUM["WGS_1984, ... AUTHORITY["EPSG","4326"]]' </s> remove     >>>     avg_rating=Window(
    >>>         expression=Avg('rating'),
    >>>         partition_by=[F('studio'), F('genre')],
    >>>         order_by='released__year',
    >>>         frame=RowRange(start=-2, end=2),
    >>>     ),
    >>> )
 </s> add     ...     avg_rating=Window(
    ...         expression=Avg('rating'),
    ...         partition_by=[F('studio'), F('genre')],
    ...         order_by='released__year',
    ...         frame=RowRange(start=-2, end=2),
    ...     ),
    ... )
.. code-block:: text
  
  Geographic queries with geometries take the following general form (assuming
  the ``Zipcode`` model used in the :doc:`model-api`):
  
.. code-block:: text
  
      >>> qs = Zipcode.objects.filter(<field>__<lookup_type>=<parameter>)
      >>> qs = Zipcode.objects.exclude(...)
  
  For example:
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