From df55f52d8f7fb0c3967eb4142fd7e3b1d933aae4 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 14 Mar 2016 12:45:01 -0500 Subject: [PATCH] fixed #1187 Field(.)Virtual typo, thanks RekGRpth --- gluon/sqlhtml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 95e5f0ce..2e47e737 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -677,7 +677,7 @@ class AutocompleteWidget(object): def callback(self): if self.keyword in self.request.vars: field = self.fields[0] - if type(field) is FieldVirtual: + if type(field) is Field.Virtual: records = [] table_rows = self.db(self.db[field.tablename]).select(orderby=self.orderby) count = 0 @@ -741,7 +741,7 @@ class AutocompleteWidget(object): del attr['requires'] attr['_name'] = key2 value = attr['value'] - if type(self.fields[0]) is FieldVirtual: + if type(self.fields[0]) is Field.Virtual: record = None table_rows = self.db(self.db[self.fields[0].tablename]).select(orderby=self.orderby) for row in table_rows: