From 3f18e5c3d7b73367aeb106a18561721144b1c5a7 Mon Sep 17 00:00:00 2001 From: Victor Shnayder Date: Thu, 21 Mar 2013 17:23:46 -0400 Subject: [PATCH] In sign up form, merge PhD-science and PhD-other, add Associate's degree Includes corresponding documentation changes. Per request from Harvard: LH #276 --- common/djangoapps/student/models.py | 9 +++++++-- doc/public/internal_data_formats/sql_schema.rst | 10 +++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/common/djangoapps/student/models.py b/common/djangoapps/student/models.py index 54bdd77297..56b1293c2d 100644 --- a/common/djangoapps/student/models.py +++ b/common/djangoapps/student/models.py @@ -75,10 +75,15 @@ class UserProfile(models.Model): GENDER_CHOICES = (('m', 'Male'), ('f', 'Female'), ('o', 'Other')) gender = models.CharField(blank=True, null=True, max_length=6, db_index=True, choices=GENDER_CHOICES) - LEVEL_OF_EDUCATION_CHOICES = (('p_se', 'Doctorate in science or engineering'), - ('p_oth', 'Doctorate in another field'), + + # [03/21/2013] removed these, but leaving comment since there'll still be + # p_se and p_oth in the existing data in db. + # ('p_se', 'Doctorate in science or engineering'), + # ('p_oth', 'Doctorate in another field'), + LEVEL_OF_EDUCATION_CHOICES = (('p', 'Doctorate'), ('m', "Master's or professional degree"), ('b', "Bachelor's degree"), + ('a', "Associate's degree"), ('hs', "Secondary/high school"), ('jhs', "Junior secondary/junior high/middle school"), ('el', "Elementary/primary school"), diff --git a/doc/public/internal_data_formats/sql_schema.rst b/doc/public/internal_data_formats/sql_schema.rst index 409ec1c065..92c5c4fa0e 100644 --- a/doc/public/internal_data_formats/sql_schema.rst +++ b/doc/public/internal_data_formats/sql_schema.rst @@ -313,14 +313,18 @@ There is an important split in demographic data gathered for the students who si - This student signed up before this information was collected * - `''` (blank) - User did not specify level of education. + * - `'p'` + - Doctorate * - `'p_se'` - - Doctorate in science or engineering + - Doctorate in science or engineering (no longer used) * - `'p_oth'` - - Doctorate in another field + - Doctorate in another field (no longer used) * - `'m'` - Master's or professional degree * - `'b'` - Bachelor's degree + * - `'a'` + - Associate's degree * - `'hs'` - Secondary/high school * - `'jhs'` @@ -624,4 +628,4 @@ The generatedcertificate table tracks certificate state for students who have be `grade` ------- - The grade of the student recorded at the time the certificate was generated. This may be different than the current grade since grading is only done once for a course when it ends. \ No newline at end of file + The grade of the student recorded at the time the certificate was generated. This may be different than the current grade since grading is only done once for a course when it ends.