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

Closes #412: Tenant group assignment is no longer mandatory

This commit is contained in:
Jeremy Stretch
2016-08-02 16:04:25 -04:00
parent 9f3647cd53
commit bc9158a74f
5 changed files with 54 additions and 7 deletions

View File

@ -28,7 +28,7 @@ class Tenant(CreatedUpdatedModel):
"""
name = models.CharField(max_length=30, unique=True)
slug = models.SlugField(unique=True)
group = models.ForeignKey('TenantGroup', related_name='tenants', on_delete=models.PROTECT)
group = models.ForeignKey('TenantGroup', related_name='tenants', blank=True, null=True, on_delete=models.SET_NULL)
description = models.CharField(max_length=100, blank=True, help_text="Long-form name (optional)")
comments = models.TextField(blank=True)