do not append twice the same person
This commit is contained in:
parent
7b2cd85b3c
commit
4f89307607
|
@ -85,6 +85,7 @@ class ListAuthorsView(BrowserView):
|
|||
for name_part in re.split(r'[-\s]', normalizer.normalize(object.Title()).lower()):
|
||||
if name_part.startswith(q):
|
||||
s.append(object)
|
||||
break
|
||||
def cmp_deputy(x, y):
|
||||
return cmp(normalizer.normalize(x.Title()).lower(),
|
||||
normalizer.normalize(y.Title()).lower())
|
||||
|
|
Reference in New Issue