Changes between Initial Version and Version 1 of Ticket #28600, comment 6
- Timestamp:
- Oct 11, 2017, 3:29:29 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28600, comment 6
initial v1 6 6 7 7 {{{ 8 models = ModelA.objects. select_related('b').bulk_create([ModelA(...), ModelA(...), ModelA(...)])8 models = ModelA.objects.bulk_create([ModelA(...), ModelA(...), ModelA(...)]) 9 9 from django.db.models import prefetch_related_objects 10 10 prefetch_related_objects(models, 'b')