diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 15:32:50 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 15:32:50 +0300 |
commit | 5295e88be1a5d3ac1aa94ae267d839e58cc92c5d (patch) | |
tree | 174a55f5b8e41cb07114953fd4d1672c0f72b2b2 /servo/forms | |
parent | ad45447445f5be4c14b4b11d798606748e0aa518 (diff) | |
download | Servo-5295e88be1a5d3ac1aa94ae267d839e58cc92c5d.tar.gz Servo-5295e88be1a5d3ac1aa94ae267d839e58cc92c5d.tar.bz2 Servo-5295e88be1a5d3ac1aa94ae267d839e58cc92c5d.zip |
Django 3 fixes
Diffstat (limited to 'servo/forms')
-rw-r--r-- | servo/forms/__init__.py | 12 | ||||
-rw-r--r-- | servo/forms/checkin.py | 4 | ||||
-rw-r--r-- | servo/forms/notes.py | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/servo/forms/__init__.py b/servo/forms/__init__.py index 0c8f2d5..243075b 100644 --- a/servo/forms/__init__.py +++ b/servo/forms/__init__.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- -from base import * -from orders import * -from notes import * -from devices import * -from product import * -from repairs import * +from .base import * +from .orders import * +from .notes import * +from .devices import * +from .product import * +from .repairs import * from .checkin import * diff --git a/servo/forms/checkin.py b/servo/forms/checkin.py index b3ed0d0..8cd19c4 100644 --- a/servo/forms/checkin.py +++ b/servo/forms/checkin.py @@ -8,7 +8,7 @@ from django.conf import settings from django_countries import countries from django.core.validators import RegexValidator from django.utils.translation import ugettext_lazy as _ -from django.forms.extras.widgets import SelectDateWidget +from django.forms import SelectDateWidget from servo.validators import (apple_sn_validator, phone_validator, @@ -22,7 +22,7 @@ from servo.models import (Configuration, Device, # Generate list of years for purchase date picker y = date.today().year -YEARS = [x + 1 for x in xrange(y - 10, y)] +YEARS = [x + 1 for x in range(y - 10, y)] def get_checkin_locations(user): diff --git a/servo/forms/notes.py b/servo/forms/notes.py index a5b0bb4..b6ce1af 100644 --- a/servo/forms/notes.py +++ b/servo/forms/notes.py @@ -2,7 +2,7 @@ import json from django import forms -from django.core.urlresolvers import reverse +from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from servo.models import Note, Escalation, Template |