mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #17027 -- Added support for the power operator in F expressions.
Thanks dan at dlo.me for the initial patch. - Added __pow__ and __rpow__ to ExpressionNode - Added oracle and mysql specific power expressions - Added used-defined power function for sqlite
This commit is contained in:
parent
1597503a01
commit
5240b83462
9 changed files with 56 additions and 2 deletions
|
@ -112,6 +112,10 @@ As well as addition, Django supports subtraction, multiplication, division,
|
|||
and modulo arithmetic with ``F()`` objects, using Python constants,
|
||||
variables, and even other ``F()`` objects.
|
||||
|
||||
.. versionadded:: 1.7
|
||||
|
||||
The power operator ``**`` is also supported.
|
||||
|
||||
``Q()`` objects
|
||||
===============
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue