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

Renamed 'last_modified' to 'last_updated'

This commit is contained in:
Jeremy Stretch
2016-06-22 11:03:49 -04:00
parent 338539e0d6
commit 921040d2fc
5 changed files with 35 additions and 10 deletions

View File

@@ -9,8 +9,8 @@ from .models import UserKey, SecretRole, Secret
class UserKeyAdmin(admin.ModelAdmin):
actions = ['activate_selected']
list_display = ['user', 'is_filled', 'is_active', 'created']
fields = ['user', 'public_key', 'is_active', 'last_modified']
readonly_fields = ['is_active', 'last_modified']
fields = ['user', 'public_key', 'is_active', 'last_updated']
readonly_fields = ['is_active', 'last_updated']
def get_readonly_fields(self, request, obj=None):
# Don't allow a user to modify an existing public key directly.
@@ -66,6 +66,6 @@ class SecretRoleAdmin(admin.ModelAdmin):
@admin.register(Secret)
class SecretAdmin(admin.ModelAdmin):
list_display = ['device', 'role', 'name', 'created', 'last_modified']
fields = ['device', 'role', 'name', 'hash', 'created', 'last_modified']
readonly_fields = ['device', 'hash', 'created', 'last_modified']
list_display = ['device', 'role', 'name', 'created', 'last_updated']
fields = ['device', 'role', 'name', 'hash', 'created', 'last_updated']
readonly_fields = ['device', 'hash', 'created', 'last_updated']