Просмотр исходного кода

Fix Interface tag replication in schema migration

Jeremy Stretch 5 лет назад
Родитель
Сommit
d1bd010e05
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/virtualization/migrations/0016_replicate_interfaces.py

+ 1 - 1
netbox/virtualization/migrations/0016_replicate_interfaces.py

@@ -5,7 +5,7 @@ from django.db import migrations
 
 
 def replicate_interfaces(apps, schema_editor):
 def replicate_interfaces(apps, schema_editor):
     ContentType = apps.get_model('contenttypes', 'ContentType')
     ContentType = apps.get_model('contenttypes', 'ContentType')
-    TaggedItem = apps.get_model('taggit', 'TaggedItem')
+    TaggedItem = apps.get_model('extras', 'TaggedItem')
     Interface = apps.get_model('dcim', 'Interface')
     Interface = apps.get_model('dcim', 'Interface')
     IPAddress = apps.get_model('ipam', 'IPAddress')
     IPAddress = apps.get_model('ipam', 'IPAddress')
     VMInterface = apps.get_model('virtualization', 'Interface')
     VMInterface = apps.get_model('virtualization', 'Interface')