Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Allow fallback to 'id' key#78

Open
jobevers wants to merge 1 commit intopallets-eco:masterfrom
jobevers:master
Open

Allow fallback to 'id' key#78
jobevers wants to merge 1 commit intopallets-eco:masterfrom
jobevers:master

Conversation

@jobevers
Copy link
Copy Markdown

If identity is a dictionary, identity = getattr(identity, 'id') or identity['id'] fails with AttributeError: 'dict' object has no attribute 'id'

Setting the default allows the id key to be used.

@pall-valmundsson
Copy link
Copy Markdown

Same as #63

@ghost
Copy link
Copy Markdown

ghost commented May 25, 2017

I second this

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants