Changes between Initial Version and Version 1 of Ticket #28600, comment 6


Ignore:
Timestamp:
10/11/17 20:29:29 (5 years ago)
Author:
Adnan Umer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28600, comment 6

    initial v1  
    66
    77{{{
    8 models = ModelA.objects.select_related('b').bulk_create([ModelA(...), ModelA(...), ModelA(...)])
     8models = ModelA.objects.bulk_create([ModelA(...), ModelA(...), ModelA(...)])
    99from django.db.models import prefetch_related_objects
    1010prefetch_related_objects(models, 'b')
Back to Top