  alias::
  
      from django.db import connections
      with connections['my_db_alias'].cursor() as cursor:
          # Your code here...
  
  By default, the Python DB API will return results without their field names,
  which means you end up with a ``list`` of values, rather than a ``dict``. At a
  small performance and memory cost, you can return results as a ``dict`` by
  using something like this::
 
</s> remove This results in the error::
 </s> add This results in the error:

.. code-block:: pytb </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),
    ...     ),
    ... ) </s> remove         # ...
 </s> add         ... </s> remove    This also works with full URLs::
 </s> add    This also works with full URLs:
   ::
        # Your code here
        ...
  alias::
  
      from django.db import connections
      with connections['my_db_alias'].cursor() as cursor:
        # Your code here
        ...
  
  By default, the Python DB API will return results without their field names,
  which means you end up with a ``list`` of values, rather than a ``dict``. At a
  small performance and memory cost, you can return results as a ``dict`` by
  using something like this::
keep keep keep keep replace keep keep keep keep keep
 Refs #34140 -- Corrected rst code-block and various formatting issues in docs. 
docs/topics/db/sql.txt