Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uselist = False produces relationship with uselist=True #41

Open
yfilali opened this issue Apr 6, 2017 · 0 comments
Open

uselist = False produces relationship with uselist=True #41

yfilali opened this issue Apr 6, 2017 · 0 comments

Comments

@yfilali
Copy link

yfilali commented Apr 6, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant