This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Originally from marc-w.com | |
# Built and tested on Django 1.6 | |
# NOTE: this is not bulletproof for sql injection, but works with INSERT .. SELECT FROM queries. | |
# thats why you should wrap strings into "" on your own. | |
from django.db import connection, transaction | |
class BulkInsertManager(models.Manager): |