diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-10-13 23:01:53 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-10-13 23:01:53 +0300 |
commit | 1b436e4505cd91d801be956ec398d1ffa149a8b7 (patch) | |
tree | 1cdb0af46939d3a919533b132d371656a90b2e56 | |
parent | e9b0f10c534c10b239301a58f8c00a4effe9adbf (diff) | |
download | Servo-1b436e4505cd91d801be956ec398d1ffa149a8b7.tar.gz Servo-1b436e4505cd91d801be956ec398d1ffa149a8b7.tar.bz2 Servo-1b436e4505cd91d801be956ec398d1ffa149a8b7.zip |
Use lazy translation in forms
-rw-r--r-- | servo/forms/account.py | 2 | ||||
-rw-r--r-- | servo/forms/admin.py | 2 | ||||
-rw-r--r-- | servo/forms/checkin.py | 2 | ||||
-rw-r--r-- | servo/forms/customer.py | 2 | ||||
-rw-r--r-- | servo/forms/devices.py | 2 | ||||
-rw-r--r-- | servo/forms/invoices.py | 2 | ||||
-rw-r--r-- | servo/forms/notes.py | 2 | ||||
-rw-r--r-- | servo/templates/checkin/newindex.html | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/servo/forms/account.py b/servo/forms/account.py index 90c88e4..ac31720 100644 --- a/servo/forms/account.py +++ b/servo/forms/account.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from django import forms -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ from servo.forms.base import BaseForm, BaseModelForm from servo.models.account import User diff --git a/servo/forms/admin.py b/servo/forms/admin.py index 0f5eef1..df99669 100644 --- a/servo/forms/admin.py +++ b/servo/forms/admin.py @@ -5,7 +5,7 @@ import io from django import forms from django import template -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import Permission from servo.forms.base import BaseForm, BaseModelForm diff --git a/servo/forms/checkin.py b/servo/forms/checkin.py index befcf2c..e2845ac 100644 --- a/servo/forms/checkin.py +++ b/servo/forms/checkin.py @@ -8,7 +8,7 @@ from datetime import date from django.conf import settings from django_countries import countries from django.core.validators import RegexValidator -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ from django.forms.extras.widgets import SelectDateWidget from servo.validators import apple_sn_validator, phone_validator, file_upload_validator diff --git a/servo/forms/customer.py b/servo/forms/customer.py index 9d3bfd1..73d1086 100644 --- a/servo/forms/customer.py +++ b/servo/forms/customer.py @@ -3,7 +3,7 @@ import phonenumbers from django import forms from django.utils.safestring import mark_safe -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ from servo.forms.base import BaseModelForm, DatepickerInput from servo.models import Customer diff --git a/servo/forms/devices.py b/servo/forms/devices.py index f259388..47838b1 100644 --- a/servo/forms/devices.py +++ b/servo/forms/devices.py @@ -2,7 +2,7 @@ from django import forms from django.utils.safestring import mark_safe -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ from servo.models import Tag, Device, Customer from servo.forms import DatepickerInput, AutocompleteCharField diff --git a/servo/forms/invoices.py b/servo/forms/invoices.py index 7c44360..dbb808f 100644 --- a/servo/forms/invoices.py +++ b/servo/forms/invoices.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from django import forms -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ from servo.forms import DatepickerInput, NullCharField from servo.models import Invoice, Payment, Status diff --git a/servo/forms/notes.py b/servo/forms/notes.py index de60a56..fb96ff6 100644 --- a/servo/forms/notes.py +++ b/servo/forms/notes.py @@ -4,7 +4,7 @@ import json from django import forms from gsxws import escalations from django.utils.safestring import mark_safe -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ from servo.models import Note, Escalation, Template from servo.forms import BaseModelForm, AutocompleteTextarea, TextInput diff --git a/servo/templates/checkin/newindex.html b/servo/templates/checkin/newindex.html index 7c04fb8..0188583 100644 --- a/servo/templates/checkin/newindex.html +++ b/servo/templates/checkin/newindex.html @@ -123,7 +123,7 @@ </tbody> </table> {% bootstrap_field customer_form.checkin_location %} - {% bootstrap_field customer_form.checkout_location %} + {% bootstrap_field customer_form.checkout_location %} </div> </div> <hr/> |