X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/baab092545bc665c1259488925af9213591ee310..d1276c781518fc7b90c4b6bd3bd6364252ab3174:/apps/catalogue/views.py diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index 5aeab7a7..8a96dc68 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -144,7 +144,7 @@ def upload(request): if request.method == "POST": form = forms.DocumentsUploadForm(request.POST, request.FILES) if form.is_valid(): - from fnpdjango.utils.text.slughifi import slughifi + from slugify import slugify if request.user.is_authenticated(): creator = request.user @@ -161,7 +161,7 @@ def upload(request): if filename[-1] == '/': continue title = os.path.basename(filename)[:-4] - slug = slughifi(title) + slug = slugify(title) if not (slug and filename.endswith('.xml')): skipped_list.append(filename) elif slug in slugs: