diff --git a/lti_tool/admin.py b/lti_tool/admin.py index b91c841..ae83454 100644 --- a/lti_tool/admin.py +++ b/lti_tool/admin.py @@ -1,4 +1,5 @@ from django.contrib import admin +from django.utils.translation import gettext as _ from . import models @@ -9,4 +10,29 @@ class LtiDeploymentInline(admin.TabularInline): @admin.register(models.LtiRegistration) class LtiRegistrationAdmin(admin.ModelAdmin): + fieldsets = [ + ( + None, + { + "fields": [ + "name", + "uuid", + "issuer", + "client_id", + "auth_url", + "token_url", + "keyset_url", + "is_active", + ] + }, + ), + ( + _("Static keys"), + { + "description": _("For platforms not supporting JWK Set use by tools."), + "fields": ["public_key", "private_key"], + "classes": ["collapse"], + }, + ), + ] inlines = [LtiDeploymentInline]