Commit e5de02cd by Giulio Gratta

modify YoB dropdown to limit valid years

parent 524813b6
...@@ -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