Ticket #3879: newrules.diff
File newrules.diff, 792 bytes (added by , 18 years ago) |
---|
-
forms.py
46 46 try: 47 47 if 000 <= inum < 500: 48 48 self.birthday = datetime.date(1900+year2, month, day) 49 if 500 <= inum < 750 :49 if 500 <= inum < 750 and year2 > 54: 50 50 self.birthday = datetime.date(1800+year2, month, day) 51 if 500 <= inum < 1000 :51 if 500 <= inum < 1000 and year2 < 40: 52 52 self.birthday = datetime.date(2000+year2, month, day) 53 if 900 <= inum < 1000 and year2 > 39: 54 self.birthday = datetime.date(1900+year2, month, day) 53 55 except ValueError: 54 56 raise ValidationError(msg) 55 57