Created
August 3, 2017 12:36
-
-
Save LucasMagnum/56d2c95a24897d3973d0da5a42a91d22 to your computer and use it in GitHub Desktop.
Union and Bitwise operation OR
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
# Union queryset method | |
all_products = active_products.union(adult_products) | |
# Bitwise operation OR | |
all_products = active_products | adult_products |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment