fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix test.
[redakcja.git]
/
apps
/
catalogue
/
views.py
diff --git
a/apps/catalogue/views.py
b/apps/catalogue/views.py
index
5aeab7a
..
8a96dc6
100644
(file)
--- 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():
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
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]
if filename[-1] == '/':
continue
title = os.path.basename(filename)[:-4]
- slug = slug
hifi
(title)
+ slug = slug
ify
(title)
if not (slug and filename.endswith('.xml')):
skipped_list.append(filename)
elif slug in slugs:
if not (slug and filename.endswith('.xml')):
skipped_list.append(filename)
elif slug in slugs: