-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Christian escribió: > If there a way to create multiple objects at once without calling .save > () for each object. > > Editing 200 objects with .update() is much faster than doing the same > thing with .safe() and I'm searching for a similar way to create new > objects. >
What do you mean with faster? If calling 'save' is bothering you, you can create new objects using: Class.objects.create(.........) But I don't see how is speed involved here. Check http://docs.djangoproject.com/en/dev/ref/models/instances/#saving-objects if you have doubts. Regards. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEAREIAAYFAkpKxwAACgkQNHr4BkRe3pJzPQCfZLRztiupOvz6evLfNJOKzlGh HzYAoIgIurWy9CLzQGbWspqntw/8N9h3 =nWvd -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---