lazy: add support for __radd__ ("foo" + form_var_bla) (#29951)
This commit is contained in:
parent
a481797540
commit
653db00150
|
@ -421,6 +421,9 @@ class LazyFieldVar(object):
|
|||
def __add__(self, other):
|
||||
return self.get_value().__add__(other)
|
||||
|
||||
def __radd__(self, other):
|
||||
return other + self.get_value()
|
||||
|
||||
def __mul__(self, other):
|
||||
return self.get_value().__mul__(other)
|
||||
|
||||
|
|
Loading…
Reference in New Issue