From 7e25f39f62c0be93456ac8e79828dac7de23cacd Mon Sep 17 00:00:00 2001 From: Matthew Mongeau Date: Wed, 11 Jul 2012 15:17:06 -0400 Subject: [PATCH] Change stored gender value for students.models.UserProfile * Changed from 'male', 'female', and 'other' to 'm', 'f', and 'o' --- common/djangoapps/student/models.py | 2 +- lms/templates/signup_modal.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/common/djangoapps/student/models.py b/common/djangoapps/student/models.py index efc58e9324..1c680bd9e5 100644 --- a/common/djangoapps/student/models.py +++ b/common/djangoapps/student/models.py @@ -20,7 +20,7 @@ class UserProfile(models.Model): class Meta: db_table = "auth_userprofile" - GENDER_CHOICES = (('male', 'Male'), ('female', 'Female'), ('other', 'Other')) + GENDER_CHOICES = (('m', 'Male'), ('f', 'Female'), ('o', 'Other')) ## CRITICAL TODO/SECURITY # Sanitize all fields. diff --git a/lms/templates/signup_modal.html b/lms/templates/signup_modal.html index 2fa0ab062b..2229ace1e6 100644 --- a/lms/templates/signup_modal.html +++ b/lms/templates/signup_modal.html @@ -21,8 +21,10 @@ - - + + + +