Fix bugs with seed command
This commit is contained in:
parent
aec57102f2
commit
abdaad0214
|
@ -19,14 +19,14 @@ class Command(BaseCommand):
|
||||||
email="tanner@westwinds.io",
|
email="tanner@westwinds.io",
|
||||||
password="toffee15").save()
|
password="toffee15").save()
|
||||||
|
|
||||||
self.stdout.write(User.objects.all())
|
self.stdout.write(str(User.objects.all()))
|
||||||
self.stdout.write('Users Created!')
|
self.stdout.write('Users Created!')
|
||||||
|
|
||||||
Account.objects.all().delete()
|
Account.objects.all().delete()
|
||||||
home = Account(name="home", details="home stacks",
|
home = Account(name="home", details="home stacks",
|
||||||
income=4000, expenses=2000)
|
income=4000, expenses=2000).save()
|
||||||
|
|
||||||
self.stdout.write(Account.objects.all().count())
|
self.stdout.write(str(Account.objects.all().count()))
|
||||||
self.stdout.write('Accounts Created!')
|
self.stdout.write('Accounts Created!')
|
||||||
# create seed accounts
|
# create seed accounts
|
||||||
# Home Account
|
# Home Account
|
||||||
|
|
|
@ -57,6 +57,7 @@ INSTALLED_APPS = [
|
||||||
'rest_framework.authtoken',
|
'rest_framework.authtoken',
|
||||||
'allauth',
|
'allauth',
|
||||||
'allauth.account',
|
'allauth.account',
|
||||||
|
'allauth.socialaccount', # to support user deletion
|
||||||
'dj_rest_auth',
|
'dj_rest_auth',
|
||||||
'dj_rest_auth.registration',
|
'dj_rest_auth.registration',
|
||||||
'server.api',
|
'server.api',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user