I would guess that one of your models has a Foreign Key field which is not nullable.
When you do objBlog.entry_set.add(objEntry1)
django calls save() on each object.
This is how the add
method looks like:
def add(self, *objs):
for obj in objs:
if not isinstance(obj, self.model):
raise TypeError("'%s' instance expected" % self.model._meta.object_name)
setattr(obj, rel_field.name, instance)
obj.save()
add.alters_data = True
rebus
2010-05-09 18:33:26