Merge pull request #3956 from edx/adam/user-id-profile-information

adds user id to student profile information (LMS-2791)
This commit is contained in:
Adam
2014-06-03 09:04:36 -04:00
2 changed files with 5 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ from django.contrib.auth.models import User
import xmodule.graders as xmgraders
STUDENT_FEATURES = ('username', 'first_name', 'last_name', 'is_staff', 'email')
STUDENT_FEATURES = ('id', 'username', 'first_name', 'last_name', 'is_staff', 'email')
PROFILE_FEATURES = ('name', 'language', 'location', 'year_of_birth', 'gender',
'level_of_education', 'mailing_address', 'goals')
AVAILABLE_FEATURES = STUDENT_FEATURES + PROFILE_FEATURES

View File

@@ -565,8 +565,9 @@ def get_students_features(request, course_id, csv=False): # pylint: disable=W06
available_features = analytics.basic.AVAILABLE_FEATURES
query_features = [
'username', 'name', 'email', 'language', 'location', 'year_of_birth',
'gender', 'level_of_education', 'mailing_address', 'goals'
'id', 'username', 'name', 'email', 'language', 'location',
'year_of_birth', 'gender', 'level_of_education', 'mailing_address',
'goals',
]
student_data = analytics.basic.enrolled_students_features(course_id, query_features)
@@ -575,6 +576,7 @@ def get_students_features(request, course_id, csv=False): # pylint: disable=W06
# will be displayed in the table generated in data_download.coffee. It is not (yet)
# used as the header row in the CSV, but could be in the future.
query_features_names = {
'id': _('User ID'),
'username': _('Username'),
'name': _('Name'),
'email': _('Email'),