fixed #1187 Field(.)Virtual typo, thanks RekGRpth

This commit is contained in:
mdipierro
2016-03-14 12:45:01 -05:00
parent c81f1fd6c8
commit df55f52d8f
+2 -2
View File
@@ -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: