I posted elsewhere on this thread, but take a look at JinjaSQL - https://github.com/hashedin/jinjasql. Let's you generate SQL from a string template without worrying about SQL injection.
Re:Django 1.11 beta 1 released
by Waterluvian on Tuesday February 21, 2017 @01:34AM
(#13693746)
Hah!! So so true.
sounds like an SQL injection waiting to happen