From dee0bfe0103a730f117ccfc25716ad0354485c0a Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 19 Mar 2017 20:27:23 +0100 Subject: [PATCH] Clarify bulk-create comment in spawner. --- evennia/utils/spawner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/evennia/utils/spawner.py b/evennia/utils/spawner.py index a0d5f5601f..28274e5531 100644 --- a/evennia/utils/spawner.py +++ b/evennia/utils/spawner.py @@ -154,8 +154,9 @@ def _batch_create_object(*objparams): # bulk create all objects in one go # unfortunately this doesn't work since bulk_create doesn't creates pks; - # the result are database objects at the next stage - # dbobjs = _ObjectDB.objects.bulk_create(dbobjs) + # the result would be duplicate objects at the next stage, so we comment + # it out for now: + # dbobjs = _ObjectDB.objects.bulk_create(dbobjs) dbobjs = [ObjectDB(**objparam[0]) for objparam in objparams] objs = []