fix: replace non ascii character
This commit is contained in:
parent
3cb84d971f
commit
5eded17d50
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ def first_few(items, arg='item'):
|
|||
else:
|
||||
r = ', '.join(map(lambda x: x.__str__(), items.all()[0:3]))
|
||||
plural = 's' if items.count() > 4 else ''
|
||||
r += ', … (%s other%s)' % (items.count() - 3, plural)
|
||||
r += ', ... (%s other%s)' % (items.count() - 3, plural)
|
||||
return r
|
||||
else:
|
||||
return 'no ' + arg + 's'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue