Fix a slight error in search with candidates

This commit is contained in:
Vincent Le Goff 2019-01-06 21:27:19 +01:00
parent c37a231948
commit e54fb1c3d5

View file

@ -427,6 +427,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
# only allow exact matching if searching the entire database
# or unique #dbrefs
exact = True
candidates = None
elif candidates is None:
# no custom candidates given - get them automatically
if location: