Przeglądaj źródła

#3455: Correct related_name on Cluster.tenant

Jeremy Stretch 6 lat temu
rodzic
commit
f3a41df395
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      netbox/virtualization/models.py

+ 1 - 1
netbox/virtualization/models.py

@@ -106,7 +106,7 @@ class Cluster(ChangeLoggedModel, CustomFieldModel):
     tenant = models.ForeignKey(
     tenant = models.ForeignKey(
         to='tenancy.Tenant',
         to='tenancy.Tenant',
         on_delete=models.PROTECT,
         on_delete=models.PROTECT,
-        related_name='tenants',
+        related_name='clusters',
         blank=True,
         blank=True,
         null=True
         null=True
     )
     )