[Answer]-Bulk_create how to call function on each object

1👍

You are trying to save the result of send, but send returns None. Instead you should call send in each object in turn, then send all the objects to bulk_create:

for obj in objs:
    obj.send(gateway)
Message.objects.bulk_create(objs)

Leave a comment