diff --git a/server/server/api/management/commands/seed.py b/server/server/api/management/commands/seed.py index b8035b9..b0e4020 100644 --- a/server/server/api/management/commands/seed.py +++ b/server/server/api/management/commands/seed.py @@ -13,9 +13,15 @@ class Command(BaseCommand): self.stdout.write('Clearing and seeding database...') User.objects.all().delete() - elijah = User.objects.create(username='elijah', email='elijah@westwinds.io', password='toffee15') - ievgen = User.objects.create(username='ievgen', email='ievgen@westwinds.io', password='toffee15') - tanner = User.objects.create(username='tanner', email='tanner@westwinds.io', password='toffee15') + elijah = User.objects.create(username='elijah', email='elijah@westwinds.io') + elijah.set_password('toffee15') + elijah.save() + ievgen = User.objects.create(username='ievgen', email='ievgen@westwinds.io') + ievgen.set_password('toffee15') + ievgen.save() + tanner = User.objects.create(username='tanner', email='tanner@westwinds.io') + tanner.set_password('toffee15') + tanner.save() self.stdout.write(str(User.objects.all())) self.stdout.write('{} users created!'.format(User.objects.count()))