def generate_dummy_image(_unused):
 return ContentFile(ImageField()._make_data({'color': 'blue', 'width': 50, 'height': 50, 'format': 'PNG'}), 'test.png')

def generate_dummy_image ( _unused ) : return ContentFile ( ImageField ( ) . _make_data ( { 'color' : 'blue' , 'width' : 50 , 'height' : 50 , 'format' : 'PNG' } ) , 'test.png' )
used for image fields to create a sane default .