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

Allow fallback to 'id' key #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jobevers
Copy link

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

Same as #63

@ghost
Copy link

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