  
      .. code-block:: pycon
  
          >>> if poly_1.area > poly_2.area:
          >>>     pass
  
  .. _geos-geometry-collections:
  
  Geometry Collections
  ====================
 
</s> remove     >>>     avg_rating=Window(
    >>>         expression=Avg('rating'),
    >>>         partition_by=[F('studio'), F('genre')],
    >>>         order_by='released__year',
    >>>     ),
    >>> )
 </s> add     ...     avg_rating=Window(
    ...         expression=Avg('rating'),
    ...         partition_by=[F('studio'), F('genre')],
    ...         order_by='released__year',
    ...     ),
    ... ) </s> remove use the default_related_name ``bars``::
 </s> add use the default_related_name ``bars``:

.. code-block:: pycon </s> remove     >>>    'partition_by': [F('studio'), F('genre')],
    >>>    'order_by': 'released__year',
    >>> }
 </s> add     ...    'partition_by': [F('studio'), F('genre')],
    ...    'order_by': 'released__year',
    ... } </s> remove     >>>     p2.restaurant
    >>> except ObjectDoesNotExist:
    >>>     print("There is no restaurant here.")
 </s> add     ...     p2.restaurant
    ... except ObjectDoesNotExist:
    ...     print("There is no restaurant here.") </s> remove     >>>     avg_rating=Window(
    >>>         expression=Avg('rating'),
    >>>         partition_by=[F('studio'), F('genre')],
    >>>         order_by='released__year',
    >>>         frame=ValueRange(start=-12, end=12),
    >>>     ),
    >>> )
 </s> add     ...     avg_rating=Window(
    ...         expression=Avg('rating'),
    ...         partition_by=[F('studio'), F('genre')],
    ...         order_by='released__year',
    ...         frame=ValueRange(start=-12, end=12),
    ...     ),
    ... )
        ...     pass
  
      .. code-block:: pycon
  
          >>> if poly_1.area > poly_2.area:
        ...     pass
  
  .. _geos-geometry-collections:
  
  Geometry Collections
  ====================
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/geos.txt