X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d6f190d50127a1aca615ff505a8a2595b4cfb7de..154870f0416b6b387637d6035c96321410512e95:/src/isbn/views.py?ds=sidebyside 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')