Files
edx-platform/openedx/core/djangoapps/demographics/admin.py
Albert St. Aubin 4db9a6aa8d [MICROBA-485] Added support API and model for hiding the demographics CTA
The Demographics CTA is used to ask users to respond to the optional
questions. This API and model support the API being dismissed by the
user so they are not bothered by it.
2020-07-24 15:08:28 -04:00

22 lines
457 B
Python

"""
Django admin page for demographics
"""
from django.contrib import admin
from openedx.core.djangoapps.demographics.models import UserDemographics
class UserDemographicsAdmin(admin.ModelAdmin):
"""
Admin for UserDemographics Model
"""
list_display = ('user', 'show_call_to_action')
readonly_fields = ('user',)
class Meta(object):
model = UserDemographics
admin.site.register(UserDemographics, UserDemographicsAdmin)