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

Bulk loading doesn't work #394

Open
maurges opened this issue May 14, 2021 · 0 comments
Open

Bulk loading doesn't work #394

maurges opened this issue May 14, 2021 · 0 comments

Comments

@maurges
Copy link

maurges commented May 14, 2021

Cf. this stackoverflow question (not mine)

When you try to load items in bulk like this: data = UserSchema(many=True).load(input_data), you get an error: AttributeError: 'list' object has no attribute 'get'

This happens because the _do_load overload of the schema doesn't check for many before attempting to call dict methods here

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