mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-11 06:12:16 -06:00
* merge branch develop * bugfix, signals for virtualization's class wasn't correctly defined * updated webhooks for 2.4 and cleanup * updated docs to cover changes to supervisor config * review changes and further cleanup * updated redis connection settings * cleanup settings
This commit is contained in:
committed by
Jeremy Stretch
parent
fe9ae933e2
commit
80a1b23f6f
@@ -5,3 +5,10 @@ from django.apps import AppConfig
|
||||
|
||||
class TenancyConfig(AppConfig):
|
||||
name = 'tenancy'
|
||||
|
||||
def ready(self):
|
||||
|
||||
# register webhook signals
|
||||
from extras.webhooks import register_signals
|
||||
from .models import Tenant, TenantGroup
|
||||
register_signals([Tenant, TenantGroup])
|
||||
|
||||
@@ -25,6 +25,8 @@ class TenantGroup(models.Model):
|
||||
|
||||
csv_headers = ['name', 'slug']
|
||||
|
||||
serializer = 'tenancy.api.serializers.TenantGroupSerializer'
|
||||
|
||||
class Meta:
|
||||
ordering = ['name']
|
||||
|
||||
@@ -79,6 +81,8 @@ class Tenant(CreatedUpdatedModel, CustomFieldModel):
|
||||
|
||||
csv_headers = ['name', 'slug', 'group', 'description', 'comments']
|
||||
|
||||
serializer = 'tenancy.api.serializers.TenantSerializer'
|
||||
|
||||
class Meta:
|
||||
ordering = ['group', 'name']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user