X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d6f190d50127a1aca615ff505a8a2595b4cfb7de..edf01dc493de62acf2abf93acfcc023a0877439f:/src/isbn/views.py?ds=inline diff --git a/src/isbn/views.py b/src/isbn/views.py index 8cf7b5d34..09c3466b2 100644 --- a/src/isbn/views.py +++ b/src/isbn/views.py @@ -1,8 +1,10 @@ -# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.contrib.auth.decorators import permission_required -from django.core.urlresolvers import reverse from django.http.response import HttpResponseRedirect from django.shortcuts import render +from django.urls import reverse from django.views.decorators.http import require_POST from isbn.forms import WLISBNForm, WLConfirmForm, FNPISBNForm @@ -78,7 +80,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')