Ticket #636 (closed defect: fixed)
[PATCH] AutoCompleteField can't be used an SuggestField
|Reported by:||Joost||Owned by:||anonymous|
Pressing enter causes the AutoCompleteField widget to automatically select the first result from the results set. This is fine for data entry but for search boxes and such you don't want this automatic behavior. The attached patch adds an extra (optional) attribute: only_suggest which can be set True when one doesn't want the automatic behavior. The patch is backwards compatible.
acf = AutoCompleteField(name="search_a", search_controller="/search", search_param="keywords", result_name="results", only_suggest=True)