From 01cec7c999002976ea7b43a0833d8a1add42cf41 Mon Sep 17 00:00:00 2001 From: M1ha Shvn Date: Thu, 16 Dec 2021 14:22:43 +0500 Subject: [PATCH] Update clickhouse_migrate.py Fixed error in manage.py clickhouse_migrate --- src/django_clickhouse/management/commands/clickhouse_migrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/django_clickhouse/management/commands/clickhouse_migrate.py b/src/django_clickhouse/management/commands/clickhouse_migrate.py index 8927141..d1c0a9e 100644 --- a/src/django_clickhouse/management/commands/clickhouse_migrate.py +++ b/src/django_clickhouse/management/commands/clickhouse_migrate.py @@ -23,7 +23,7 @@ class Command(BaseCommand): ' By default all available migrations are applied.' ' Note that library currently have no ability rollback migrations') - parser.add_argument('--database', '-d', nargs='?', type=str, required=False, choices=config.DATABASES.keys(), + parser.add_argument('--database', '-d', nargs='?', type=str, required=False, choices=list(config.DATABASES.keys()), help='ClickHouse database alias key from CLICKHOUSE_DATABASES django setting.' ' By default migrations are applied to all databases.')