Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixes unhashable type OrderedDict error exposed by DRF 3.4.4 #269

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

Merged
scottfisk merged 2 commits into develop from bugfix/unhashable-type
Aug 16, 2016

Conversation

Copy link
Member

@jerel jerel commented Aug 16, 2016

No description provided.

Copy link
Contributor

Copy link
Member Author

jerel commented Aug 16, 2016

@scottfisk yeah, due to that naming change get_choices was being called on the base class rather than our version (choices). And we are serializing {'type': 'foo', 'id': '1'} to json since it's not a simple pk so just returning to_representation caused an Unhashable type: OrderedDict to be thrown.

So, my fix is to remove @property choices and let the base class cache that (all it does is call get_choices)

Copy link
Contributor

lgtm 👍

@scottfisk scottfisk merged commit c83b69e into develop Aug 16, 2016
@sliverc sliverc deleted the bugfix/unhashable-type branch December 14, 2018 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /