News for hackers. Stuff that matters.
Re:Django 1.11 beta 1 released by koliber on Tuesday February 21, 2017 @04:01AM (#13694302)
You may be interested in the `.extra(...)` call on a QuerySet in Django. It allows you to specify hand-written SQL for various clauses, including `WHERE`.

https://docs.djangoproject.com/en/1.10/ref/models/querysets/...

Re:Django 1.11 beta 1 released by StavrosK on Tuesday February 21, 2017 @07:59AM (#13695092)
There's also a method (I forget the name, as I've never used it) where you write the full SQL and just tell Django which models' rows it's supposed to be returning, and it will build model instances from the returned SQL. Pretty nifty.
Re:Django 1.11 beta 1 released by bebop on Tuesday February 21, 2017 @01:50PM (#13698264)