fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Django 1.9.
[wolnelektury.git]
/
src
/
catalogue
/
models
/
collection.py
diff --git
a/src/catalogue/models/collection.py
b/src/catalogue/models/collection.py
index
e952043
..
b765abe
100644
(file)
--- a/
src/catalogue/models/collection.py
+++ b/
src/catalogue/models/collection.py
@@
-40,7
+40,6
@@
class Collection(models.Model):
def get_query(self):
slugs = self.book_slugs.split()
# allow URIs
- # WTF
slugs = [slug.rstrip('/').rsplit('/', 1)[-1] if '/' in slug else slug for slug in slugs]
return models.Q(slug__in=slugs)