X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/37ef9073a6d8676a5c2cb0f3cf4105c60af77469..cf166fd1eaaeddfa266aa46b6442ad2315095c2c:/apps/api/utils.py 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