Revert "Labels should get their information from the render function of the records."
This reverts commit 65c87386c1.
This commit is contained in:
+2
-2
@@ -578,9 +578,9 @@ class IS_IN_DB(Validator):
|
|||||||
records = self.dbset(table).select(table.ALL, **dd)
|
records = self.dbset(table).select(table.ALL, **dd)
|
||||||
self.theset = [str(r[self.kfield]) for r in records]
|
self.theset = [str(r[self.kfield]) for r in records]
|
||||||
if isinstance(self.label, str):
|
if isinstance(self.label, str):
|
||||||
self.labels = [self.label % r for r in records.render()]
|
self.labels = [self.label % r for r in records]
|
||||||
else:
|
else:
|
||||||
self.labels = [self.label(r) for r in records.render]
|
self.labels = [self.label(r) for r in records]
|
||||||
|
|
||||||
def options(self, zero=True):
|
def options(self, zero=True):
|
||||||
self.build_set()
|
self.build_set()
|
||||||
|
|||||||
Reference in New Issue
Block a user