Hi guys, how can I execute such query in django:
SELECT * FROM keywords_keyword WHERE id not in (SELECT keyword_id FROM sites_pagekeyword)
In the latest SVN release we can use:
keywords = Keyword.objects.raw('SELECT * FROM keywords_keyword WHERE id not in (SELECT keyword_id FROM sites_pagekeyword)')
But RawQuerySet doesn't support filter(), count(), indexing and other things. Is there another way?