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.
23 lines
529 B
Python
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)
|