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

Closes #2229: Allow mapping of ConfigContexts to tenant groups

This commit is contained in:
Jeremy Stretch
2018-07-27 15:47:29 -04:00
parent 7476f522e1
commit a1e8397b6b
6 changed files with 29 additions and 10 deletions

View File

@ -677,6 +677,11 @@ class ConfigContext(models.Model):
related_name='+',
blank=True
)
tenant_groups = models.ManyToManyField(
to='tenancy.TenantGroup',
related_name='+',
blank=True
)
tenants = models.ManyToManyField(
to='tenancy.Tenant',
related_name='+',