X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d2b872dc09415d2a436e825673425d9a82afa034..6653ce8ab102d16224dabebb8bfa884198698b73:/src/isbn/forms.py?ds=sidebyside diff --git a/src/isbn/forms.py b/src/isbn/forms.py index 558cd9aa0..47a72baf2 100644 --- a/src/isbn/forms.py +++ b/src/isbn/forms.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- from datetime import date -from urllib2 import urlopen +from urllib.request import urlopen 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 @@ -86,7 +86,7 @@ class FNPISBNForm(forms.Form): return {'role': 'A01', 'name': output_name} def slug(self): - return slughifi('fnp %s %s' % (self.cleaned_data['authors'], self.cleaned_data['title'])) + return slugify('fnp %s %s' % (self.cleaned_data['authors'], self.cleaned_data['title'])) def save(self): data = {