소스 검색

#3455: Correct related_name on Cluster.tenant

Jeremy Stretch 6 년 전
부모
커밋
f3a41df395
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      netbox/virtualization/models.py

+ 1 - 1
netbox/virtualization/models.py

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