'Callback for Entry'

def entry_complete(self, entry, query=None, search_results=None, **kwargs):

    if entry.accepted:
        query.accept()
    search_results.remove(entry)
    if (not search_results):
        query.complete()
