diff --git a/openedx/core/djangoapps/agreements/admin.py b/openedx/core/djangoapps/agreements/admin.py index 7406c1d93f4..82e2427dff5 100644 --- a/openedx/core/djangoapps/agreements/admin.py +++ b/openedx/core/djangoapps/agreements/admin.py @@ -3,8 +3,10 @@ """ from django.contrib import admin - from openedx.core.djangoapps.agreements.models import IntegritySignature +from openedx.core.djangoapps.agreements.models import LTIPIITool +from openedx.core.djangoapps.agreements.models import LTIPIISignature +from openedx.core.djangoapps.agreements.models import ProctoringPIISignature class IntegritySignatureAdmin(admin.ModelAdmin): @@ -21,3 +23,42 @@ class Meta: admin.site.register(IntegritySignature, IntegritySignatureAdmin) + + +class LTIPIIToolAdmin(admin.ModelAdmin): + """ + Admin for the LTIPIITool Model + """ + readonly_fields = ('course_key', 'lti_tools', 'lti_tools_hash') + + class Meta: + model = LTIPIITool + + +admin.site.register(LTIPIITool, LTIPIIToolAdmin) + + +class LTIPIISignatureAdmin(admin.ModelAdmin): + """ + Admin for the LTIPIISignature Model + """ + readonly_fields = ('user', 'course_key', 'lti_tools', 'lti_tools_hash') + + class Meta: + model = LTIPIISignature + + +admin.site.register(LTIPIISignature, LTIPIISignatureAdmin) + + +class ProctoringPIISignatureAdmin(admin.ModelAdmin): + """ + Admin for the ProctoringPIISignature Model + """ + readonly_fields = ('user', 'course_key', 'proctoring_provider') + + class Meta: + model = ProctoringPIISignature + + +admin.site.register(ProctoringPIISignature, ProctoringPIISignatureAdmin)