From abdaad0214a660b8b4298d14412379fdf93163d6 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Fri, 16 Jul 2021 00:00:26 +0000 Subject: [PATCH] Fix bugs with seed command --- server/server/api/management/commands/seed.py | 6 +++--- server/server/settings.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/server/api/management/commands/seed.py b/server/server/api/management/commands/seed.py index ad8a614..f939e5d 100644 --- a/server/server/api/management/commands/seed.py +++ b/server/server/api/management/commands/seed.py @@ -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 diff --git a/server/server/settings.py b/server/server/settings.py index 9452f2c..62618eb 100644 --- a/server/server/settings.py +++ b/server/server/settings.py @@ -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',