Fixes #11248 - Reindex only NetBox apps

This commit is contained in:
Alef Burzmali 2022-12-28 21:06:11 +01:00 committed by Jeremy Stretch
parent ae440c9edf
commit b7cdbd3d41

View File

@ -10,7 +10,16 @@ from django.db import migrations, models
def reindex(apps, schema_editor):
# Build the search index (except during tests)
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):