Use _field for sql_format of Function field
It is useful to allow to use sql_format on Function field when writing SQL query that emulate the field. issue6410 review34051002
This commit is contained in:
1 parent
826f30219d
commit
a178546d0d
1 file changed
+3
@@ -62,6 +62,9 @@ class Function(Field):
|
||||
def set_rpc(self, model):
|
||||
self._field.set_rpc(model)
|
||||
|
||||
def sql_format(self, value):
|
||||
return self._field.sql_format(value)
|
||||
|
||||
def sql_type(self):
|
||||
return None
|
||||
|
||||
|
||||
Reference in new issue
Block a user