X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/888f954ea4d9b923e963525dbdf83d9ad1f9b443..05cab23f88a48c20cde89c7003afe3fa3d2e016d:/apps/api/utils.py?ds=sidebyside diff --git a/apps/api/utils.py b/apps/api/utils.py index f8be8a13..37a89a29 100644 --- a/apps/api/utils.py +++ b/apps/api/utils.py @@ -65,7 +65,7 @@ def natural_order(get_key=lambda x: x): def getter(key): nkey = get_key(key) - if not isinstance(key, unicode): + if not isinstance(nkey, unicode): ukey = nkey.decode('utf-8') else: ukey = nkey