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