Ticket #17027: add_pow_to_expression_node.diff
File add_pow_to_expression_node.diff, 741 bytes (added by , 13 years ago) |
---|
-
django/db/models/expressions.py
10 10 SUB = '-' 11 11 MUL = '*' 12 12 DIV = '/' 13 POW = '^' 13 14 MOD = '%%' # This is a quoted % operator - it is quoted 14 15 # because it can be used in strings that also 15 16 # have parameter substitution. … … 61 62 def __div__(self, other): 62 63 return self._combine(other, self.DIV, False) 63 64 65 def __pow__(self, other): 66 return self._combine(other, self.POW, False) 67 64 68 def __mod__(self, other): 65 69 return self._combine(other, self.MOD, False) 66 70