aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-05-14 11:34:30 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-05-14 11:34:30 +0300
commitf4158d4882664ae3c53a03fca8f1983eb3c1735f (patch)
tree5f88a9c739a7247876f0c5133f143e1aa8b24c40
parent88a9b410d5b2db55eb3794c9b8664d087b8f0cd2 (diff)
downloadServo-f4158d4882664ae3c53a03fca8f1983eb3c1735f.tar.gz
Servo-f4158d4882664ae3c53a03fca8f1983eb3c1735f.tar.bz2
Servo-f4158d4882664ae3c53a03fca8f1983eb3c1735f.zip
Added Polish
-rw-r--r--servo/models/account.py4
-rw-r--r--servo/models/device.py1
2 files changed, 4 insertions, 1 deletions
diff --git a/servo/models/account.py b/servo/models/account.py
index f72555b..06f6417 100644
--- a/servo/models/account.py
+++ b/servo/models/account.py
@@ -67,6 +67,7 @@ class User(AbstractUser):
('en_US.UTF-8', _("English")),
('et_EE.UTF-8', _("Estonian")),
('fi_FI.UTF-8', _("Finnish")),
+ ('pl_PL.UTF-8', _("Polish")),
('sv_SE.UTF-8', _("Swedish")),
)
locale = models.CharField(
@@ -90,9 +91,10 @@ class User(AbstractUser):
('da_DK.UTF-8', _("Denmark")),
('et_EE.UTF-8', _("Estonia")),
('fi_FI.UTF-8', _("Finland")),
- ('en_US.UTF-8', _("United States")),
('nl_NL.UTF-8', _("Netherlands")),
+ ('pl_PL.UTF-8', _("Poland")),
('sv_SE.UTF-8', _("Sweden")),
+ ('en_US.UTF-8', _("United States")),
)
region = models.CharField(
max_length=32,
diff --git a/servo/models/device.py b/servo/models/device.py
index 6d20173..4688423 100644
--- a/servo/models/device.py
+++ b/servo/models/device.py
@@ -534,6 +534,7 @@ class Device(models.Model):
class Meta:
app_label = "servo"
get_latest_by = "id"
+ ordering = ['description']
@receiver(post_save, sender=Device)