Skip to content

Commit

Permalink
Updated: logs generated models better. (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
im-n1 committed Feb 4, 2020
1 parent b806f87 commit 6f6e960
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions django_seed/management/commands/seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ def handle_app_config(self, app_config, **options):
seeder.add_entity(model, number)
print('Seeding %i %ss' % (number, model.__name__))

pks = seeder.execute()
print(pks)
generated = seeder.execute()

for model, pks in generated.items():
for pk in pks:
print("Model {} generated record with primary key {}".format(
model.__name__,
pk
))

def dependencies(self, model):
dependencies = set()
Expand Down

0 comments on commit 6f6e960

Please sign in to comment.