Ticket #3879: newrules.diff

File newrules.diff, 792 bytes (added by thebjorn <bp@…>, 18 years ago)

updated rules for assigning numbers

  • forms.py

     
    4646        try:
    4747            if 000 <= inum < 500:
    4848                self.birthday = datetime.date(1900+year2, month, day)
    49             if 500 <= inum < 750:
     49            if 500 <= inum < 750 and year2 > 54:
    5050                self.birthday = datetime.date(1800+year2, month, day)
    51             if 500 <= inum < 1000:
     51            if 500 <= inum < 1000 and year2 < 40:
    5252                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)
    5355        except ValueError:
    5456            raise ValidationError(msg)
    5557
Back to Top