Change stored gender value for students.models.UserProfile

* Changed from 'male', 'female', and 'other' to 'm', 'f', and 'o'
This commit is contained in:
Matthew Mongeau
2012-07-11 15:17:06 -04:00
parent 23460730fc
commit 7e25f39f62
2 changed files with 5 additions and 3 deletions

View File

@@ -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.

View File

@@ -21,8 +21,10 @@
<input name="username" type="text" placeholder="Public Username">
<label>Full Name</label>
<input name="name" type="text" placeholder="Full Name">
<label>Your Location</label>
<input name="location" type="text" placeholder="Your Location">
<label>Mailing address</label>
<textarea name="mailing_address" placeholder="Mailing address"></textarea>
<label>Country</label>
<input name="country" type="text" placeholder="Country of citizenship">
<label>Preferred Language</label>
<input name="language" type="text" placeholder="Preferred Language">
<label class="terms-of-service">