diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-11-11 15:24:29 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-11-11 15:24:29 +0200 |
commit | 1049e8d11c80a1838255ab37b07282a5c5d82c5b (patch) | |
tree | 5da084b0e812460e765d3e89944e85dbc2ee46a4 /servo | |
parent | 981855ad27c331a03dbfcec24bd6b49c30681c94 (diff) | |
download | Servo-1049e8d11c80a1838255ab37b07282a5c5d82c5b.tar.gz Servo-1049e8d11c80a1838255ab37b07282a5c5d82c5b.tar.bz2 Servo-1049e8d11c80a1838255ab37b07282a5c5d82c5b.zip |
Allow selection of obsolete dates
Diffstat (limited to 'servo')
-rw-r--r-- | servo/forms/checkin.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/servo/forms/checkin.py b/servo/forms/checkin.py index e2845ac..4ac91f9 100644 --- a/servo/forms/checkin.py +++ b/servo/forms/checkin.py @@ -14,13 +14,14 @@ from django.forms.extras.widgets import SelectDateWidget from servo.validators import apple_sn_validator, phone_validator, file_upload_validator from servo.forms.base import SearchFieldInput -from servo.models import (Configuration, - Device, Attachment, Location, Customer,) +from servo.models import (Configuration, Device, + Attachment, Location, + Customer,) # Generate list of years for purchase date picker y = date.today().year -YEARS = [x+1 for x in xrange(y-7, y)] +YEARS = [x+1 for x in xrange(y-10, y)] def get_checkin_locations(user): |