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


Ignore:
Timestamp:
Oct 11, 2017, 3:29:29 PM (7 years ago)
Author:
Adnan Umer

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