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

#9414: Clean up clone_fields on all models

This commit is contained in:
jeremystretch
2022-08-11 09:58:37 -04:00
parent c1d9cace11
commit 8cd5a24409
14 changed files with 58 additions and 52 deletions

View File

@@ -112,9 +112,9 @@ class Contact(NetBoxModel):
blank=True
)
clone_fields = [
'group',
]
clone_fields = (
'group', 'name', 'title', 'phone', 'email', 'address', 'link',
)
class Meta:
ordering = ['name']
@@ -155,7 +155,7 @@ class ContactAssignment(WebhooksMixin, ChangeLoggedModel):
blank=True
)
clone_fields = ('content_type', 'object_id')
clone_fields = ('content_type', 'object_id', 'role', 'priority')
class Meta:
ordering = ('priority', 'contact')

View File

@@ -76,9 +76,9 @@ class Tenant(NetBoxModel):
to='tenancy.ContactAssignment'
)
clone_fields = [
clone_fields = (
'group', 'description',
]
)
class Meta:
ordering = ['name']