X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/39b99a8a8920dca527eb823b860303103389fd91..b0b9c1f0f9f4cc0f5c4d00d913735ab6a81bf214:/src/catalogue/models/collection.py?ds=inline diff --git a/src/catalogue/models/collection.py b/src/catalogue/models/collection.py index e95204341..b765abefe 100644 --- 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)