fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added giewont to fabfile
[wolnelektury.git]
/
apps
/
catalogue
/
models.py
diff --git
a/apps/catalogue/models.py
b/apps/catalogue/models.py
index
00baa28
..
f2be7d1
100644
(file)
--- a/
apps/catalogue/models.py
+++ b/
apps/catalogue/models.py
@@
-168,7
+168,7
@@
def book_upload_path(ext=None, maxlen=100):
name = slughifi(filename.split(".")[0])
else:
name = slughifi(media.name)
- return 'lektura/%s.%s' % (name[:
(maxlen-len('lektura/.%s' % ext))
], ext)
+ return 'lektura/%s.%s' % (name[:
maxlen-len('lektura/.%s' % ext)-4
], ext)
return get_dynamic_path