##// END OF EJS Templates
Search aliases with term in any place, not only from the start
neko259 -
r1703:75e48094 default
parent child Browse files
Show More
@@ -195,7 +195,7 b' def api_get_stickers(request):'
195
195
196 term = request.GET.get('term')
196 term = request.GET.get('term')
197 if term:
197 if term:
198 attachments = attachments.filter(alias__startswith=term)
198 attachments = attachments.filter(alias__contains=term)
199
199
200 image_dict = [{'thumb': attachment.get_thumb_url(),
200 image_dict = [{'thumb': attachment.get_thumb_url(),
201 'alias': attachment.alias}
201 'alias': attachment.alias}
General Comments 0
You need to be logged in to leave comments. Login now