﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22705	can't bulk create models with no fields	ellery-newcomer@…	Chris Luc	"I have a model


{{{
class Discussion(models.Model): pass
}}}


I try to do this:


{{{
discussions = [Discussion() for i in range(n)]
Discussion.objects.bulk_create(discussions)
}}}

it fails with 

AttributeError: 'NoneType' object has no attribute 'column'

because 

django.db.models.sql.compiler.SQLInsertCompiler.as_sql has the following line in it:


{{{
fields = [None]
}}}


which doesn't get tripped on models that have fields, apparently."	Bug	closed	Database layer (models, ORM)	1.6	Normal	fixed	QuerySet.bulk_create		Ready for checkin	1	0	0	0	0	0
