example:
result = table.objects.filter(string__contains='pattern')
icontains
Case-insensitive containment test.Example:
Entry.objects.get(headline__icontains='Lennon')
SELECT ... WHERE headline ILIKE '%Lennon%';
====
contains
Case-sensitive containment test.Example:
Entry.objects.get(headline__contains='Lennon')
SELECT ... WHERE headline LIKE '%Lennon%';
No comments:
Post a Comment