DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
and condition with or in django
from
django
.
db
.
models
import
Q User
.
objects
.
filter
(
Q
(
income__gte
=
5000
)
|
Q
(
income__isnull
=
True
)
)
Source by coders911.org #
PREVIOUS
NEXT
Tagged:
#condition
#django
ADD COMMENT
Topic
COMMENT
Name
7+7 =
Submit