break
limit -= 1
data.append({
- 'label': b.title,
+ 'label': '<cite>%s</cite>, %s' % (b.title, b.author_unicode()),
'category': _('book'),
'id': b.id,
'url': b.get_absolute_url()
query = ' '.join(query.split())
# filter out private use characters
import unicodedata
- query = ''.join(ch for ch in query if unicodedata.category(ch) == 'Co')
+ query = ''.join(ch for ch in query if unicodedata.category(ch) != 'Co')
if len(query) < 2:
return render_to_response(