      >>> data = {'subject': 'hello',
      ...         'message': 'Hi there',
      ...         'sender': 'foo@example.com',
      ...         'cc_myself': True}
      >>> file_data = {'mugshot': SimpleUploadedFile('face.jpg', <file data>)}
      >>> f = ContactFormWithMugshot(data, file_data)
  
  In practice, you will usually specify ``request.FILES`` as the source
  of file data (just like you use ``request.POST`` as the source of
  form data):
 
</s> remove         >>> file_data = {'img': SimpleUploadedFile('test.png', <file data>)}
 </s> add         >>> file_data = {'img': SimpleUploadedFile('test.png', b"file data")} </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 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         >>> 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'), **window,
    >>>     ),
    >>>     best=Window(
    >>>         expression=Max('rating'), **window,
    >>>     ),
    >>>     worst=Window(
    >>>         expression=Min('rating'), **window,
    >>>     ),
    >>> )
 </s> add     ...     avg_rating=Window(
    ...         expression=Avg('rating'), **window,
    ...     ),
    ...     best=Window(
    ...         expression=Max('rating'), **window,
    ...     ),
    ...     worst=Window(
    ...         expression=Min('rating'), **window,
    ...     ),
    ... )
    >>> file_data = {'mugshot': SimpleUploadedFile('face.jpg', b"file data")}
      >>> data = {'subject': 'hello',
      ...         'message': 'Hi there',
      ...         'sender': 'foo@example.com',
      ...         'cc_myself': True}
    >>> file_data = {'mugshot': SimpleUploadedFile('face.jpg', b"file data")}
      >>> f = ContactFormWithMugshot(data, file_data)
  
  In practice, you will usually specify ``request.FILES`` as the source
  of file data (just like you use ``request.POST`` as the source of
  form data):
keep keep keep keep replace keep keep keep keep keep
 Refs #34140 -- Corrected rst code-block and various formatting issues in docs. 
docs/ref/forms/api.txt