* Fix retrieving BadgeAssertion data from Badgr With edx#27181, the integration with Badgr was updated and fixed to be working with the Badgr v2 API. However, retrieving the Badge Assertion data from Badgr still needs to be updated for the new json response structure so we can save it at our end as well. * Add BadgeAssertion table to LMS admin
21 lines
559 B
Python
21 lines
559 B
Python
"""
|
|
Admin registration for Badge Models
|
|
"""
|
|
|
|
|
|
from config_models.admin import ConfigurationModelAdmin
|
|
from django.contrib import admin
|
|
|
|
from lms.djangoapps.badges.models import (
|
|
BadgeAssertion,
|
|
BadgeClass,
|
|
CourseCompleteImageConfiguration,
|
|
CourseEventBadgesConfiguration
|
|
)
|
|
|
|
admin.site.register(CourseCompleteImageConfiguration)
|
|
admin.site.register(BadgeClass)
|
|
admin.site.register(BadgeAssertion)
|
|
# Use the standard Configuration Model Admin handler for this model.
|
|
admin.site.register(CourseEventBadgesConfiguration, ConfigurationModelAdmin)
|