티스토리 뷰

공부

[Django] not like statement

seunggabi 승가비 2020. 7. 28. 22:21
Model.objects.exclude(Q(keyword__contains='undefined') | Q(keyword__contains='null'))

https://stackoverflow.com/questions/4193097/django-not-like-statement

 

Django not like statement

how to use not like in django queries Model.objects.filter(keywords not like "null" or "undefined") select * from model where keywords not like "%undefined%" or keywords not like "%nu...

stackoverflow.com

 

'공부' 카테고리의 다른 글

[Python] proxy image respnose content-type  (0) 2020.07.28
[Linux] install python mysql  (0) 2020.07.28
[Django] not like statement  (0) 2020.07.28
[Django] filter query  (0) 2020.07.28
[jQuery] check loaded image  (0) 2020.07.28
[Python] KafkaConsumer start consuming messages from a timestamp  (0) 2020.07.24
댓글
댓글쓰기 폼