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

Changed Secret parent from a GenericForeignKey to ForeignKey(Device)

This commit is contained in:
Jeremy Stretch
2016-03-21 11:42:42 -04:00
parent 3f279dc58b
commit a6108f2fa8
16 changed files with 94 additions and 75 deletions

View File

@@ -66,6 +66,6 @@ class SecretRoleAdmin(admin.ModelAdmin):
@admin.register(Secret)
class SecretAdmin(admin.ModelAdmin):
list_display = ['parent', 'role', 'name', 'created', 'last_modified']
fields = ['parent', 'role', 'name', 'hash', 'created', 'last_modified']
readonly_fields = ['parent', 'hash', 'created', 'last_modified']
list_display = ['device', 'role', 'name', 'created', 'last_modified']
fields = ['device', 'role', 'name', 'hash', 'created', 'last_modified']
readonly_fields = ['device', 'hash', 'created', 'last_modified']