From f4158d4882664ae3c53a03fca8f1983eb3c1735f Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 14 May 2021 11:34:30 +0300 Subject: Added Polish --- servo/models/account.py | 4 +++- servo/models/device.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'servo') 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) -- cgit v1.2.3