Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[py3] Fixed F-expression right-hand division

Complementary to commit 62a9ed0.
  • Loading branch information...
commit de2cb5fede0766a52717024615cc56a03465fe61 1 parent 64a3c7f
@claudep claudep authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/db/models/expressions.py
View
3  django/db/models/expressions.py
@@ -80,8 +80,9 @@ def __rsub__(self, other):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.