Files
edx-platform/openedx/core/djangoapps/credentials/admin.py
Michael Terry 6f7b19b6bf Let notify_credentials get args from db
To allow the notify_credentials management command to run from a
jenkins job, we want to allow the command to pull its arguments
from the database, rather than the jenkins interface.

So this adds a table that admins can adjust in the DB and a new
argument for notify_credentials to tell it to go look there.

LEARNER-6196
LEARNER-6197
2018-08-20 11:57:34 -04:00

19 lines
471 B
Python

"""
Django admin pages for credentials support models.
"""
from config_models.admin import ConfigurationModelAdmin
from django.contrib import admin
from openedx.core.djangoapps.credentials.models import CredentialsApiConfig, NotifyCredentialsConfig
@admin.register(CredentialsApiConfig)
class CredentialsApiConfigAdmin(ConfigurationModelAdmin):
pass
@admin.register(NotifyCredentialsConfig)
class NotifyCredentialsConfigAdmin(ConfigurationModelAdmin):
pass