Created
October 20, 2016 01:13
-
-
Save brettmcintosh/48482c3bcc4ae2075f91d449a160eaca to your computer and use it in GitHub Desktop.
Do you know how to use F expressions? I don't
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> models.F(None) | |
F(None) | |
>>> models.F(None) >= 1 | |
True | |
>>> models.F(None) + 1 >= 1 | |
True | |
>>> models.F(None) + 1 | |
<CombinedExpression: F(None) + Value(1)> | |
""" | |
https://docs.djangoproject.com/en/1.9/ref/models/expressions/#f-expressions | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment