1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

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):