Open yfilali opened 7 years ago
image_attachment is overriding the uselist kwargs causing sqlalchemy to still uselist in its representation. This causes code that inspects relationships to mistake the single image for a list of images.
profile_image = image_attachment('UserProfileImage', uselist=False)
I would expect proper behavior to pass the uselist kwargs unchanged.
image_attachment is overriding the uselist kwargs causing sqlalchemy to still uselist in its representation. This causes code that inspects relationships to mistake the single image for a list of images.
profile_image = image_attachment('UserProfileImage', uselist=False)
I would expect proper behavior to pass the uselist kwargs unchanged.