Update clickhouse_migrate.py

Fixed error in manage.py clickhouse_migrate
This commit is contained in:
M1ha Shvn 2021-12-16 14:22:43 +05:00 committed by GitHub
parent 2beb449b67
commit 01cec7c999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.')