Author: adrian Date: 2011-12-09 15:14:04 -0800 (Fri, 09 Dec 2011) New Revision: 17188
Modified: django/trunk/docs/topics/db/optimization.txt Log: Fixed some comma splices in the 'Insert in bulk' section of db/optimization.txt Modified: django/trunk/docs/topics/db/optimization.txt =================================================================== --- django/trunk/docs/topics/db/optimization.txt 2011-12-09 22:13:27 UTC (rev 17187) +++ django/trunk/docs/topics/db/optimization.txt 2011-12-09 23:14:04 UTC (rev 17188) @@ -283,21 +283,23 @@ Entry(headline="Python 3.1 Planned") ]) -Is preferable to:: +...is preferable to:: Entry.objects.create(headline="Python 3.0 Released") Entry.objects.create(headline="Python 3.1 Planned") Note that there are a number of :meth:`caveats to this method -<django.db.models.query.QuerySet.bulk_create>`, make sure it is appropriate for -your use case. This also applies to :class:`ManyToManyFields -<django.db.models.ManyToManyField>`, doing:: +<django.db.models.query.QuerySet.bulk_create>`, so make sure it's appropriate +for your use case. +This also applies to :class:`ManyToManyFields +<django.db.models.ManyToManyField>`, so doing:: + my_band.members.add(me, my_friend) -Is preferable to:: +...is preferable to:: my_band.members.add(me) my_band.members.add(my_friend) -Where ``Bands`` and ``Artists`` have a many-to-many relationship. +...where ``Bands`` and ``Artists`` have a many-to-many relationship. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.