Unverified Commit f5b8f138 authored by Serge S. Koval's avatar Serge S. Koval Committed by GitHub

Merge pull request #1586 from asakaplan/alchemy-fix

Change fields.py to be compatible with SQLAlchemy>=1.2
parents f04b71b7 197896a1
......@@ -296,5 +296,5 @@ class InlineModelFormList(InlineFieldList):
def get_pk_from_identity(obj):
# TODO: Remove me
cls, key = identity_key(instance=obj)
key = identity_key(instance=obj)[1]
return u':'.join(text_type(x) for x in key)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment