Skip to content

Commit

Permalink
Move registration key fields to fieldset in admin form
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwheeler committed May 30, 2024
1 parent b570816 commit cf5303a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lti_tool/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.contrib import admin
from django.utils.translation import gettext as _

from . import models

Expand All @@ -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]

0 comments on commit cf5303a

Please sign in to comment.