Commit 7e25f39f by Matthew Mongeau

Change stored gender value for students.models.UserProfile

* Changed from 'male', 'female', and 'other' to 'm', 'f', and 'o'
parent 23460730
...@@ -20,7 +20,7 @@ class UserProfile(models.Model): ...@@ -20,7 +20,7 @@ class UserProfile(models.Model):
class Meta: class Meta:
db_table = "auth_userprofile" db_table = "auth_userprofile"
GENDER_CHOICES = (('male', 'Male'), ('female', 'Female'), ('other', 'Other')) GENDER_CHOICES = (('m', 'Male'), ('f', 'Female'), ('o', 'Other'))
## CRITICAL TODO/SECURITY ## CRITICAL TODO/SECURITY
# Sanitize all fields. # Sanitize all fields.
......
...@@ -21,8 +21,10 @@ ...@@ -21,8 +21,10 @@
<input name="username" type="text" placeholder="Public Username"> <input name="username" type="text" placeholder="Public Username">
<label>Full Name</label> <label>Full Name</label>
<input name="name" type="text" placeholder="Full Name"> <input name="name" type="text" placeholder="Full Name">
<label>Your Location</label> <label>Mailing address</label>
<input name="location" type="text" placeholder="Your Location"> <textarea name="mailing_address" placeholder="Mailing address"></textarea>
<label>Country</label>
<input name="country" type="text" placeholder="Country of citizenship">
<label>Preferred Language</label> <label>Preferred Language</label>
<input name="language" type="text" placeholder="Preferred Language"> <input name="language" type="text" placeholder="Preferred Language">
<label class="terms-of-service"> <label class="terms-of-service">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment