Skip to content

Conversation

BrickXu
Copy link
Contributor

@BrickXu BrickXu commented Dec 5, 2014

Refs #2193

serializer.data

exception = result.exception
self.assertEqual(str(exception), "Cannot set both 'fields' and 'exclude'.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd rather just see these in test_model_serializer.py, but look good otherwise.

@lovelydinosaur
Copy link
Member

Nice work! See my inline comments.

@lovelydinosaur lovelydinosaur added this to the 3.0.1 Release milestone Dec 5, 2014
lovelydinosaur added a commit that referenced this pull request Dec 5, 2014
Raise error if `fields` on serializer is not a list of strings.
@lovelydinosaur lovelydinosaur merged commit c611a2c into encode:master Dec 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants