from django.db import connection with connection.cursor() as cursor: cursor.execute(""" UPDATE myapp_mymodel SET field_to_update = %s WHERE some_condition = %s """, [new_value, True])