Segue os links:

Documentação do Django: https://docs.djangoproject.com/en/1.4/topics/security/#sql-injection-protection

DjangoBook na seção ``The Solution``:  http://www.djangobook.com/en/2.0/chapter20.html