fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove obsolete jsonfield dependency.
[wolnelektury.git]
/
src
/
isbn
/
views.py
diff --git
a/src/isbn/views.py
b/src/isbn/views.py
index
8cf7b5d
..
399a25d
100644
(file)
--- a/
src/isbn/views.py
+++ b/
src/isbn/views.py
@@
-1,8
+1,7
@@
-# -*- coding: utf-8 -*-
from django.contrib.auth.decorators import permission_required
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.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
from django.views.decorators.http import require_POST
from isbn.forms import WLISBNForm, WLConfirmForm, FNPISBNForm
@@
-78,7
+77,7
@@
def get_format(record):
if record.product_form_detail:
return PRODUCT_FORMATS[record.product_form_detail][0]
else:
if record.product_form_detail:
return PRODUCT_FORMATS[record.product_form_detail][0]
else:
- return [key for key, value in PRODUCT_FORMS.ite
rite
ms() 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')
@permission_required('add_onixrecord')