project/team/models.py
def warm_team_member_images(sender, instance, **kwargs):
    '''
    Ensures images are created post-save.
    Image sizes are stored in base.VERSATILEIMAGEFIELD_RENDITION_KEY_SETS.
    Using a thumbnail__AxA rendition key, the image fits in a AxA rectangle by
    maintaining the aspect ratio.

    Documentation link:
    https://django-versatileimagefield.readthedocs.io/en/latest/overview.html#create-images-wherever-you-need-them
    '''

    for field in ['image', 'image_alt']:
        img_warmer = VersatileImageFieldWarmer(
            instance_or_queryset=instance,
            rendition_key_set='Sizes',
            image_attr=field,
            verbose=True
        )
        img_warmer.warm()

    Ensures images are created post-save.
    Image sizes are stored in base.VERSATILEIMAGEFIELD_RENDITION_KEY_SETS.
    Using a thumbnail__AxA rendition key, the image fits in a AxA rectangle by
    maintaining the aspect ratio.

    Documentation link:
    https://django-versatileimagefield.readthedocs.io/en/latest/overview.html#create-images-wherever-you-need-them
    
Ensures images are created post-save.
Image sizes are stored in base.VERSATILEIMAGEFIELD_RENDITION_KEY_SETS.
Using a thumbnail__AxA rendition key, the image fits in a AxA rectangle by
maintaining the aspect ratio.


Ensures images are created post - save . Image sizes are stored in base . VERSATILEIMAGEFIELD_RENDITION_KEY_SETS . Using a thumbnail__AxA rendition key the image fits in a AxA rectangle by maintaining the aspect ratio .
def warm_team_member_images(sender, instance, **kwargs):
    for field in ['image', 'image_alt']:
        img_warmer = VersatileImageFieldWarmer(
            instance_or_queryset=instance,
            rendition_key_set='Sizes',
            image_attr=field,
            verbose=True
        )
        img_warmer.warm()
def warm_team_member_images ( sender , instance , ** kwargs ) : for field in [ 'image' , 'image_alt' ] : img_warmer = VersatileImageFieldWarmer ( instance_or_queryset = instance , rendition_key_set = 'Sizes' , image_attr = field , verbose = True ) img_warmer . warm ( )
Ensures images are created post-save.
Ensures images are created post - save .
'''
    Ensures images are created post-save.
    Image sizes are stored in base.VERSATILEIMAGEFIELD_RENDITION_KEY_SETS.
    Using a thumbnail__AxA rendition key, the image fits in a AxA rectangle by
    maintaining the aspect ratio.

    Documentation link:
    https://django-versatileimagefield.readthedocs.io/en/latest/overview.html#create-images-wherever-you-need-them
    '''
sender
instance