  the :ref:`distance queries introduction <distance-queries>`.
  
  Distance lookups take the following form::
  
      <field>__<distance lookup>=(<geometry/raster>, <distance value>[, 'spheroid'])
      <field>__<distance lookup>=(<raster>, <band_index>, <distance value>[, 'spheroid'])
      <field>__<band_index>__<distance lookup>=(<raster>, <band_index>, <distance value>[, 'spheroid'])
  
  The value passed into a distance lookup is a tuple; the first two
  values are mandatory, and are the geometry to calculate distances to,
  and a distance value (either a number in units of the field, a
  :class:`~django.contrib.gis.measure.Distance` object, or a :doc:`query
 
</s> remove Distance lookups take the following form::
 </s> add Distance lookups take the following form: </s> remove :class:`~django.contrib.auth.models.User` object is a string in this format::
 </s> add :class:`~django.contrib.auth.models.User` object is a string in this format:

.. code-block:: text </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 </s> remove like so::
 </s> add like so:

.. code-block:: pycon
.. code-block:: text

    <field>__<distance lookup>=(<geometry/raster>, <distance value>[, "spheroid"])
    <field>__<distance lookup>=(<raster>, <band_index>, <distance value>[, "spheroid"])
    <field>__<band_index>__<distance lookup>=(<raster>, <band_index>, <distance value>[, "spheroid"])
  the :ref:`distance queries introduction <distance-queries>`.
  
  Distance lookups take the following form::
  
.. code-block:: text

    <field>__<distance lookup>=(<geometry/raster>, <distance value>[, "spheroid"])
    <field>__<distance lookup>=(<raster>, <band_index>, <distance value>[, "spheroid"])
    <field>__<band_index>__<distance lookup>=(<raster>, <band_index>, <distance value>[, "spheroid"])
.. code-block:: text

    <field>__<distance lookup>=(<geometry/raster>, <distance value>[, "spheroid"])
    <field>__<distance lookup>=(<raster>, <band_index>, <distance value>[, "spheroid"])
    <field>__<band_index>__<distance lookup>=(<raster>, <band_index>, <distance value>[, "spheroid"])
.. code-block:: text

    <field>__<distance lookup>=(<geometry/raster>, <distance value>[, "spheroid"])
    <field>__<distance lookup>=(<raster>, <band_index>, <distance value>[, "spheroid"])
    <field>__<band_index>__<distance lookup>=(<raster>, <band_index>, <distance value>[, "spheroid"])
  
  The value passed into a distance lookup is a tuple; the first two
  values are mandatory, and are the geometry to calculate distances to,
  and a distance value (either a number in units of the field, a
  :class:`~django.contrib.gis.measure.Distance` object, or a :doc:`query
keep keep keep keep replace replace replace keep keep keep keep keep
 Refs #34140 -- Corrected rst code-block and various formatting issues in docs. 
docs/ref/contrib/gis/geoquerysets.txt