[Answered ]-Django: performing a SQL match all in Django

2👍

If you need exactly this query you can execute this in django like raw sql. Here you can find about raw sql in django.

It`s good to put your sql code into a custom manager. An example with manager and raw sql can be found here

Leave a comment