Merge pull request #1767 from vincent-lg/fix_candidates

Fix a slight error in search with candidates
This commit is contained in:
Griatch 2019-01-13 12:40:51 +01:00 committed by GitHub
commit 484e5e6b1c

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: