From 399c7d0ec7be50413153c010fff35834b43abee1 Mon Sep 17 00:00:00 2001 From: Peter Eckel Date: Tue, 19 Sep 2023 20:06:13 +0200 Subject: [PATCH] Removed re-indexing migration --- netbox_dns/migrations/0022_search.py | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/netbox_dns/migrations/0022_search.py b/netbox_dns/migrations/0022_search.py index 1a23bd60..b67baaf4 100644 --- a/netbox_dns/migrations/0022_search.py +++ b/netbox_dns/migrations/0022_search.py @@ -1,29 +1,11 @@ import sys -from packaging import version - -from django.core import management from django.db import migrations -from django.conf import settings - - -def reindex(apps, schema_editor): - if "test" not in sys.argv: - if version.parse(settings.VERSION) >= version.parse("3.4.2"): - management.call_command("reindex", "netbox_dns") - else: - management.call_command("reindex", "netbox_dns.view") - management.call_command("reindex", "netbox_dns.nameserver") - management.call_command("reindex", "netbox_dns.zone") - management.call_command("reindex", "netbox_dns.record") class Migration(migrations.Migration): dependencies = [ - ("extras", "0083_search"), ("netbox_dns", "0021_record_ip_address"), ] - operations = [ - migrations.RunPython(code=reindex, reverse_code=migrations.RunPython.noop), - ] + operations = []