Skip to content

Conversation

@martinhill
Copy link

Fixes issue 3634

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, the new line doesn't check whether to_fields is None or not

@martinhill
Copy link
Author

Sorry for multiple commits, that should be the final one.

@xordoquy xordoquy added this to the 3.3.2 Release milestone Nov 15, 2015
@xordoquy xordoquy changed the title fix for issue #3634 Relation fields no to_fields attribute attribute break serializer Nov 15, 2015
@xordoquy
Copy link
Contributor

Wondering whether we need a test here - most likely we do

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we us hasattr instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

@tomchristie no, cf my previous outdated comment

Copy link
Contributor

Choose a reason for hiding this comment

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

Ack - ignore my comment there. Incorrect.

@lovelydinosaur
Copy link
Contributor

Wondering whether we need a test here - most likely we do

For simple cases I'm kinda okay with us simply switching out a more brittle style for a safer style. A test case would be appreciated, but would probably accept either way.

@martinhill
Copy link
Author

Agreed – I could definitely add a test case, but might take a couple days.

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