diff --git a/app1/management/commands/wait_for_db.py b/app1/management/commands/wait_for_db.py index 981f116..ba0659c 100644 --- a/app1/management/commands/wait_for_db.py +++ b/app1/management/commands/wait_for_db.py @@ -18,7 +18,7 @@ class Command(BaseCommand): db_up = False while db_up is False: try: - self.check(database=['default']) + self.check(databases=['default']) db_up = True except (Psycopg2OpError, OperationalError): self.stdout.write('Database unavailable, waiting 1 sec...')