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.
22 lines
457 B
Python
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)
|