Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant