Add type to chunk_size arg for update_index

pull/5295/head
Seb 2019-05-09 10:41:35 +10:00 zatwierdzone przez Matt Westcott
rodzic 1b22794da2
commit 5e15984074
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -16,6 +16,7 @@ Changelog
* Fix: Explorer menu no longer shows sibling pages for which the user does not have access (Mike Hearn)
* Fix: Fixed occurences of invalid HTML across the CMS admin (Thibaud Colas)
* Fix: Admin HTML now includes the correct `dir` attribute for the active language (Andreas Bernacca)
* Fix: Fix type error when using `--chunk_size` argument on `./manage.py update_index` (Seb Brown)
2.5.1 (07.05.2019)

Wyświetl plik

@ -30,6 +30,7 @@ Bug fixes
* Explorer menu no longer shows sibling pages for which the user does not have access (Mike Hearn)
* Fixed occurences of invalid HTML across the CMS admin (Thibaud Colas)
* Admin HTML now includes the correct ``dir`` attribute for the active language (Andreas Bernacca)
* Fix type error when using ``--chunk_size`` argument on ``./manage.py update_index`` (Seb Brown)
Upgrade considerations

Wyświetl plik

@ -103,7 +103,7 @@ class Command(BaseCommand):
'--schema-only', action='store_true', dest='schema_only', default=False,
help="Prevents loading any data into the index")
parser.add_argument(
'--chunk_size', action='store', dest='chunk_size', default=DEFAULT_CHUNK_SIZE,
'--chunk_size', action='store', dest='chunk_size', default=DEFAULT_CHUNK_SIZE, type=int,
help="Set number of records to be fetched at once for inserting into the index")
def handle(self, **options):