Commit 197896a1 authored by Asa Kaplan's avatar Asa Kaplan

Fixed for Python2 compatibility

parent bed56655
...@@ -296,5 +296,5 @@ class InlineModelFormList(InlineFieldList): ...@@ -296,5 +296,5 @@ class InlineModelFormList(InlineFieldList):
def get_pk_from_identity(obj): def get_pk_from_identity(obj):
# TODO: Remove me # TODO: Remove me
cls, key, *token = identity_key(instance=obj) key = identity_key(instance=obj)[1]
return u':'.join(text_type(x) for x in key) 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