Commit 1fe0408f by Joe Blaylock

Merge pull request #66 from Stanford-Online/giulio/limit-year-dropdown

modify YoB dropdown to limit valid years
parents 73b7f1eb e5de02cd
...@@ -206,7 +206,8 @@ class UserProfile(models.Model): ...@@ -206,7 +206,8 @@ class UserProfile(models.Model):
# Optional demographic data we started capturing from Fall 2012 # Optional demographic data we started capturing from Fall 2012
this_year = datetime.now(UTC).year this_year = datetime.now(UTC).year
VALID_YEARS = range(this_year, this_year - 120, -1) #VALID_YEARS = range(this_year, this_year - 120, -1)
VALID_YEARS = range(this_year - 13, this_year - 100, -1) # changed valid years to be between 100 and 13 years ago.
year_of_birth = models.IntegerField(blank=True, null=True, db_index=True) year_of_birth = models.IntegerField(blank=True, null=True, db_index=True)
GENDER_CHOICES = ( GENDER_CHOICES = (
('m', ugettext_noop('Male')), ('m', ugettext_noop('Male')),
......
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