from django.contrib import admin
from . import models


@admin.register(models.EncryptionKey)
class EncryptionKeyAdmin(admin.ModelAdmin):
    list_display = ["user", "name", "last_used_on"]
    fields = ["user", "name", "key", "last_used_on"]
    raw_id_fields = ["user"]
