Skip to content

Commit

Permalink
fead: added django admin forms (#32926)
Browse files Browse the repository at this point in the history
* feat: added django admin forms
  • Loading branch information
ericanwoga authored Aug 7, 2023
1 parent 7c41be7 commit 4e75a89
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion openedx/core/djangoapps/agreements/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)

0 comments on commit 4e75a89

Please sign in to comment.