Set test user's passwords correctly
This commit is contained in:
parent
a9c51a14a4
commit
674e3fd253
|
@ -13,9 +13,15 @@ class Command(BaseCommand):
|
||||||
self.stdout.write('Clearing and seeding database...')
|
self.stdout.write('Clearing and seeding database...')
|
||||||
|
|
||||||
User.objects.all().delete()
|
User.objects.all().delete()
|
||||||
elijah = User.objects.create(username='elijah', email='elijah@westwinds.io', password='toffee15')
|
elijah = User.objects.create(username='elijah', email='elijah@westwinds.io')
|
||||||
ievgen = User.objects.create(username='ievgen', email='ievgen@westwinds.io', password='toffee15')
|
elijah.set_password('toffee15')
|
||||||
tanner = User.objects.create(username='tanner', email='tanner@westwinds.io', 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(str(User.objects.all()))
|
||||||
self.stdout.write('{} users created!'.format(User.objects.count()))
|
self.stdout.write('{} users created!'.format(User.objects.count()))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user