is there any way to get the number of total records inserted in Django model using bulk_create
??
Entry.objects.bulk_create([
... Entry(headline="Django 2.0 Released"),
... Entry(headline="Django 2.1 Announced"),
... Entry(headline="Breaking: Django is awesome")
... ])
In the above example, 3 records are inserted into the database.
How can I get the total number of records using bulk_create
??
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…