X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/37ef9073a6d8676a5c2cb0f3cf4105c60af77469..d0cbddd54807e6e43f2ab75bd234ddc0beaa8d86:/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