Skip to content
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

Not all objects have an id field. Use pk instead #31

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

Conversation

alexagrf
Copy link

@alexagrf alexagrf commented Sep 9, 2016

In _get_lock_name, the code uses obj.id, but objects can be created without an id field. Using .pk is more general and should give the same result when an id field exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant