verbose_name_plural = _('collections')
app_label = 'catalogue'
- def __unicode__(self):
+ def __str__(self):
return self.title
def get_initial(self):
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)