Skip to content

Commit

Permalink
fix a bug in EmptySeeder.
Browse files Browse the repository at this point in the history
  • Loading branch information
suliman-99 committed Nov 26, 2024
1 parent 2e97ac5 commit 4a379b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_seeding/seeders.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def seed(self):
""" Standard Implementation of `seed()` method for empty objects with `bulk_create()` """
records_count = self._get_records_count()
model = self._get_model()
new_objects = (model() for _ in range(records_count))
new_objects = [model() for _ in range(records_count)]
model.objects.bulk_create(new_objects)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = 'django-seeding'
version = '1.3.5'
version = '1.3.6'
description = 'Simple Django Package that helps developer to seed data from files and codes into the database automatically'
readme = "README.md"
authors = [
Expand Down

0 comments on commit 4a379b3

Please sign in to comment.