mirror of
https://github.com/Hopiu/django.git
synced 2026-04-19 14:31:09 +00:00
[py3] Fixed F-expression right-hand division
Complementary to commit 62a9ed0ac.
This commit is contained in:
parent
64a3c7f9ae
commit
de2cb5fede
1 changed files with 2 additions and 1 deletions
|
|
@ -80,8 +80,9 @@ class ExpressionNode(tree.Node):
|
|||
def __rmul__(self, other):
|
||||
return self._combine(other, self.MUL, True)
|
||||
|
||||
def __rdiv__(self, other):
|
||||
def __rtruediv__(self, other):
|
||||
return self._combine(other, self.DIV, True)
|
||||
__rdiv__ = __rtruediv__ # Python 2 compatibility
|
||||
|
||||
def __rmod__(self, other):
|
||||
return self._combine(other, self.MOD, True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue