Skip to content

Conversation

@lovelydinosaur
Copy link
Contributor

When .is_valid fails for a ListSerializer, the .validated_data attribute should be [], not {}.
When is_valid passes for a ListSerializer, the .errors attribute should be [], not {}.

Note that users don't typically hit this, as they've already checked is_valid, so the empty case doesn't get typically get inspected.

Closes #3437.
Closes #3434.
Closes #3476.

Thanks to @nip3o, @jpadilla and @xordoquy.

@lovelydinosaur lovelydinosaur added this to the 3.4.0 Release milestone Jun 8, 2016
@lovelydinosaur lovelydinosaur merged commit a5f822d into master Jun 8, 2016
@lovelydinosaur lovelydinosaur deleted the empty-cases-as-lists-not-dicts-for-listserializer branch June 8, 2016 14:55
@jpadilla
Copy link
Contributor

jpadilla commented Jun 8, 2016

@tomchristie thanks for picking this up

@lovelydinosaur
Copy link
Contributor Author

No problem! Trying to get the issue list into shape as part of the funded work right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants