diff --git a/lemarche/siaes/management/commands/set_search_vector_field.py b/lemarche/siaes/management/commands/set_search_vector_field.py index e87b2b0f0..318fd7e6e 100644 --- a/lemarche/siaes/management/commands/set_search_vector_field.py +++ b/lemarche/siaes/management/commands/set_search_vector_field.py @@ -21,7 +21,7 @@ def handle(self, *args, **options): self.stdout_info("Reseting search_vector field...") progress = 0 for i in range(0, SIAE_COUNT, RANGE_STEP): # to avoid memory issues - for siae in Siae.objects.prefetch_related("sectors", "offers", "labels").all()[i, i + RANGE_STEP]: + for siae in Siae.objects.prefetch_related("sectors", "offers", "labels").all()[i : i + RANGE_STEP]: # noqa siae_search_vector = ( SearchVector( Value(siae.name, output_field=models.CharField()), diff --git a/lemarche/siaes/migrations/0066_siae_search_vector.py b/lemarche/siaes/migrations/0072_siae_search_vector.py similarity index 90% rename from lemarche/siaes/migrations/0066_siae_search_vector.py rename to lemarche/siaes/migrations/0072_siae_search_vector.py index 2c591b10e..406b6a5d9 100644 --- a/lemarche/siaes/migrations/0066_siae_search_vector.py +++ b/lemarche/siaes/migrations/0072_siae_search_vector.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): dependencies = [ - ("siaes", "0065_siae_legal_form"), + ("siaes", "0071_alter_siae_kind"), ] operations = [ diff --git a/lemarche/siaes/migrations/0067_siae_siaes_siae_search__200779_gin.py b/lemarche/siaes/migrations/0073_siae_siaes_siae_search__200779_gin.py similarity index 90% rename from lemarche/siaes/migrations/0067_siae_siaes_siae_search__200779_gin.py rename to lemarche/siaes/migrations/0073_siae_siaes_siae_search__200779_gin.py index 2929f023b..04e8a8a5e 100644 --- a/lemarche/siaes/migrations/0067_siae_siaes_siae_search__200779_gin.py +++ b/lemarche/siaes/migrations/0073_siae_siaes_siae_search__200779_gin.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): dependencies = [ - ("siaes", "0066_siae_search_vector"), + ("siaes", "0072_siae_search_vector"), ] operations = [ diff --git a/lemarche/templates/siaes/search_results.html b/lemarche/templates/siaes/search_results.html index 062b145c8..5cda3d875 100644 --- a/lemarche/templates/siaes/search_results.html +++ b/lemarche/templates/siaes/search_results.html @@ -201,9 +201,9 @@