          >>> from django import forms
          >>> from django.core.files.uploadedfile import SimpleUploadedFile
          >>> class ImageForm(forms.Form):
          ...     img = forms.ImageField()
          >>> file_data = {'img': SimpleUploadedFile('test.png', <file data>)}
          >>> form = ImageForm({}, file_data)
          # Pillow closes the underlying file descriptor.
          >>> form.is_valid()
          True
          >>> image_field = form.cleaned_data['img']
 
</s> remove     >>> class JSPath:
 </s> add     ... class JSPath: </s> remove     >>> file_data = {'mugshot': SimpleUploadedFile('face.jpg', <file data>)}
 </s> add     >>> file_data = {'mugshot': SimpleUploadedFile('face.jpg', b"file data")} </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     from django.db.models import Count, F, Value
    from django.db.models.functions import Length, Upper
    from django.db.models.lookups import GreaterThan
 </s> add     >>> from django.db.models import Count, F, Value
    >>> from django.db.models.functions import Length, Upper
    >>> from django.db.models.lookups import GreaterThan </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),
    ...     ),
    ... )
        >>> file_data = {'img': SimpleUploadedFile('test.png', b"file data")}
          >>> from django import forms
          >>> from django.core.files.uploadedfile import SimpleUploadedFile
          >>> class ImageForm(forms.Form):
          ...     img = forms.ImageField()
        >>> file_data = {'img': SimpleUploadedFile('test.png', b"file data")}
          >>> form = ImageForm({}, file_data)
          # Pillow closes the underlying file descriptor.
          >>> form.is_valid()
          True
          >>> image_field = form.cleaned_data['img']
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/fields.txt