django qquery code example
Example 1: objects.filter django
>>> Entry.objects.filter(blog_id=4)
Example 2: django filter word count greater than
Item.objects.extra(where=["LENGTH(notes) - LENGTH(REPLACE(notes, ' ', ''))+1 > %s"], params=[25])
>>> Entry.objects.filter(blog_id=4)
Item.objects.extra(where=["LENGTH(notes) - LENGTH(REPLACE(notes, ' ', ''))+1 > %s"], params=[25])