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",
|
||||
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
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user