Permalink
Browse files

[py3] Fixed F-expression right-hand division

Complementary to commit 62a9ed0.
  • Loading branch information...
1 parent 64a3c7f commit de2cb5fede0766a52717024615cc56a03465fe61 @claudep claudep committed Aug 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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)

0 comments on commit de2cb5f

Please sign in to comment.