Alef Burzmali 3 лет назад
Родитель
Сommit
b7cdbd3d41
1 измененных файлов с 10 добавлено и 1 удалено
  1. 10 1
      netbox/extras/migrations/0083_search.py

+ 10 - 1
netbox/extras/migrations/0083_search.py

@@ -10,7 +10,16 @@ from django.db import migrations, models
 def reindex(apps, schema_editor):
 def reindex(apps, schema_editor):
     # Build the search index (except during tests)
     # Build the search index (except during tests)
     if 'test' not in sys.argv:
     if 'test' not in sys.argv:
-        management.call_command('reindex')
+        management.call_command(
+            'reindex',
+            'circuits',
+            'dcim',
+            'extras',
+            'ipam',
+            'tenancy',
+            'virtualization',
+            'wireless',
+        )
 
 
 
 
 class Migration(migrations.Migration):
 class Migration(migrations.Migration):