X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/35548a2c9ae7efae920ec7c90addad272b5520c3..0eafaa3ce7287b5ba7a95f3b6d528dffd9648a1d:/src/ssh_keys/admin.py?ds=sidebyside diff --git a/src/ssh_keys/admin.py b/src/ssh_keys/admin.py index 6e75313..af736bb 100644 --- a/src/ssh_keys/admin.py +++ b/src/ssh_keys/admin.py @@ -4,9 +4,9 @@ from .models import SSHKey class SSHKeyAdmin(admin.ModelAdmin): - fields = ['user', 'key', 'algorithm', 'bit_length', 'md5_hash', 'created_at', 'last_seen_at'] - readonly_fields = ['algorithm', 'bit_length', 'md5_hash', 'created_at', 'last_seen_at'] - list_display = ['comment', 'last_seen_at', 'user', 'md5_hash', 'algorithm', 'bit_length', 'created_at'] + fields = ['user', 'key', 'algorithm', 'bit_length', 'sha256_hash', 'md5_hash', 'created_at', 'last_seen_at'] + readonly_fields = ['algorithm', 'bit_length', 'sha256_hash', 'md5_hash', 'created_at', 'last_seen_at'] + list_display = ['comment', 'last_seen_at', 'user', 'sha256_hash', 'algorithm', 'bit_length', 'created_at'] ordering = (F('last_seen_at').desc(nulls_last=True),) admin.site.register(SSHKey, SSHKeyAdmin)