Fix bugs with seed command

This commit is contained in:
Tanner Collin 2021-07-16 00:00:26 +00:00
parent aec57102f2
commit abdaad0214
2 changed files with 4 additions and 3 deletions

View File

@ -19,14 +19,14 @@ class Command(BaseCommand):
email="tanner@westwinds.io",
password="toffee15").save()
self.stdout.write(User.objects.all())
self.stdout.write(str(User.objects.all()))
self.stdout.write('Users Created!')
Account.objects.all().delete()
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!')
# create seed accounts
# Home Account

View File

@ -57,6 +57,7 @@ INSTALLED_APPS = [
'rest_framework.authtoken',
'allauth',
'allauth.account',
'allauth.socialaccount', # to support user deletion
'dj_rest_auth',
'dj_rest_auth.registration',
'server.api',