Files
edx-platform/openedx/core/djangoapps/agreements/admin.py
Bianca Severino e41e6e04ee feat: initialize agreements app
Adds an app to openedx for the Agreements feature.
Includes an IntegritySignature model with a basic
API, as well as a waffle flag to support rollout.
2021-05-10 17:55:36 -04:00

23 lines
529 B
Python

"""
Django admin page for the Agreements app
"""
from django.contrib import admin
from openedx.core.djangoapps.agreements.models import IntegritySignature
class IntegritySignatureAdmin(admin.ModelAdmin):
"""
Admin for the IntegritySignature Model
"""
list_display = ('user', 'course_key',)
readonly_fields = ('user', 'course_key',)
search_fields = ('user__username', 'course_key',)
class Meta:
model = IntegritySignature
admin.site.register(IntegritySignature, IntegritySignatureAdmin)