fix location of id

This commit is contained in:
Frédéric Péters 2011-11-24 15:35:25 +01:00
parent b0a6728927
commit 9365cf026a
1 changed files with 1 additions and 1 deletions

View File

@ -60,5 +60,5 @@ class BasePublication(object):
break
previous_result = brains
del topics[random.randint(0, len(topics)-1)]
doc_ids = [self.context.id]
doc_ids = [self.id]
return [x for x in r if ((type(x.getId) is str) and x.getId or x.getId()) not in doc_ids]