Labels should get their information from the render function of the records.

This commit is contained in:
Nik Klever
2015-09-05 14:57:55 +02:00
parent 2a245d36f4
commit 65c87386c1
+2 -2
View File
@@ -578,9 +578,9 @@ class IS_IN_DB(Validator):
records = self.dbset(table).select(table.ALL, **dd)
self.theset = [str(r[self.kfield]) for r in records]
if isinstance(self.label, str):
self.labels = [self.label % r for r in records]
self.labels = [self.label % r for r in records.render()]
else:
self.labels = [self.label(r) for r in records]
self.labels = [self.label(r) for r in records.render]
def options(self, zero=True):
self.build_set()