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',