fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More Py3 compatibility fixes.
[wolnelektury.git]
/
src
/
isbn
/
forms.py
diff --git
a/src/isbn/forms.py
b/src/isbn/forms.py
index
558cd9a
..
47a72ba
100644
(file)
--- a/
src/isbn/forms.py
+++ b/
src/isbn/forms.py
@@
-1,10
+1,10
@@
# -*- coding: utf-8 -*-
from datetime import date
# -*- coding: utf-8 -*-
from datetime import date
-from urllib
2
import urlopen
+from urllib
.request
import urlopen
from django import forms
from django.utils.translation import ugettext_lazy as _
from django import forms
from django.utils.translation import ugettext_lazy as _
-from
fnpdjango.utils.text.slughifi import slughifi
+from
slugify import slugify
from isbn.management.commands.import_onix import UNKNOWN
from isbn.models import ONIXRecord, ISBNPool
from isbn.management.commands.import_onix import UNKNOWN
from isbn.models import ONIXRecord, ISBNPool
@@
-86,7
+86,7
@@
class FNPISBNForm(forms.Form):
return {'role': 'A01', 'name': output_name}
def slug(self):
return {'role': 'A01', 'name': output_name}
def slug(self):
- return slug
hifi
('fnp %s %s' % (self.cleaned_data['authors'], self.cleaned_data['title']))
+ return slug
ify
('fnp %s %s' % (self.cleaned_data['authors'], self.cleaned_data['title']))
def save(self):
data = {
def save(self):
data = {