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