Skip to content

Commit

Permalink
self-review 2
Browse files Browse the repository at this point in the history
  • Loading branch information
SebCorbin authored Nov 6, 2024
1 parent ec6277e commit fc39e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/0005_en_optimized_bulk_creation_factory_boy.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This means that an instance is generated and created for each iteration, resulti

To prevent too much SQL queries, it would be better to use `bulk_create` from the Django manager.

A simple solution can be to generate the instance and then saving them, you can also pass parameters (`notifications_enabled` for example):
A simple solution can be to generate the instances and then saving them, you can also pass parameters (`notifications_enabled` for example):
```python
class ContactFactory(DjangoModelFactory):
class Meta:
Expand Down

0 comments on commit fc39e1a

Please sign in to comment.