X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d6f190d50127a1aca615ff505a8a2595b4cfb7de..ad5acb886787871a70eee6385cddbb4238d3adb2:/src/isbn/views.py?ds=inline diff --git a/src/isbn/views.py b/src/isbn/views.py index 8cf7b5d34..8073c75a8 100644 --- a/src/isbn/views.py +++ b/src/isbn/views.py @@ -78,7 +78,7 @@ def get_format(record): if record.product_form_detail: return PRODUCT_FORMATS[record.product_form_detail][0] else: - return [key for key, value in PRODUCT_FORMS.iteritems() if value == record.product_form][0] + return [key for key, value in PRODUCT_FORMS.items() if value == record.product_form][0] @permission_required('add_onixrecord')