Skip to content

Commit

Permalink
Merge pull request #128 from getbenchmarked/master
Browse files Browse the repository at this point in the history
Fix get_pk_from_identity
  • Loading branch information
kvesteri committed Jan 21, 2018
2 parents ea2ad0b + 4b20d13 commit b84658d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wtforms_alchemy/fields.py
Expand Up @@ -314,7 +314,7 @@ def pre_validate(self, form):


def get_pk_from_identity(obj):
cls, key = identity_key(instance=obj)
cls, key = identity_key(instance=obj)[0:2]
return ':'.join(text_type(x) for x in key)


Expand Down

0 comments on commit b84658d

Please sign in to comment.