-# -*- coding: utf-8 -*-
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
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')