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

@@ -183,10 +183,10 @@ class Rack(NetBoxModel):
to='extras.ImageAttachment'
)
clone_fields = [
clone_fields = (
'site', 'location', 'tenant', 'status', 'role', 'type', 'width', 'u_height', 'desc_units', 'outer_width',
'outer_depth', 'outer_unit',
]
)
class Meta:
ordering = ('site', 'location', '_name', 'pk') # (site, location, name) may be non-unique