From ee9b4b641c6a0766ec64935f6a540e4a752fc2cc Mon Sep 17 00:00:00 2001 From: marax Date: Thu, 4 Nov 2021 17:41:47 +0100 Subject: [PATCH] Modified wait_for_db --- app1/management/commands/wait_for_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...')