diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d8875cf..30f0aa7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,10 @@ Changelog --------- +0.7.4 (2018-08-15) +~~~~~~~~~~~~~~~~~~ +* fix #33 error when nothing to resume using --resume + 0.7.3 (2018-08-14) ~~~~~~~~~~~~~~~~~~ * fix #31 es_update movies --newer --workers does not store worker information diff --git a/django_elastic_migrations/__init__.py b/django_elastic_migrations/__init__.py index 65fa0ab..e52b4f8 100644 --- a/django_elastic_migrations/__init__.py +++ b/django_elastic_migrations/__init__.py @@ -10,7 +10,7 @@ from django_elastic_migrations.utils import loading from django_elastic_migrations.utils.django_elastic_migrations_log import get_logger -__version__ = '0.7.3' +__version__ = '0.7.4' default_app_config = 'django_elastic_migrations.apps.DjangoElasticMigrationsConfig' # pylint: disable=invalid-name diff --git a/django_elastic_migrations/models.py b/django_elastic_migrations/models.py index cc45c2c..2ec61b2 100644 --- a/django_elastic_migrations/models.py +++ b/django_elastic_migrations/models.py @@ -1014,12 +1014,13 @@ def perform_action(self, dem_index, *args, **kwargs): ) elif self.resume_mode: self._last_update = self.index_version.get_last_time_update_called(before_action=self) + self._last_update_phrase = self._last_update if not self._last_update: - self._last_update = 'never' + self._last_update_phrase = 'never' self.add_log( "--resume: checking the last time update was called succesfully and completed: " u"\n - index version: {_index_version_name} " - u"\n - update date: {_last_update} ", use_self_dict_format=True + u"\n - update date: {_last_update_phrase} ", use_self_dict_format=True ) self.add_log("Starting batched bulk update ...")