1001820: fix autocompletion
Merge pull request #756 from candlepin/ckozak/fix_autocomplete

1001820: fix autocompletion