Change stored gender value for students.models.UserProfile
* Changed from 'male', 'female', and 'other' to 'm', 'f', and 'o'
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user