From 28a6024b492451212279c3c6517df90ed7bf906f Mon Sep 17 00:00:00 2001 From: Michael Bai Date: Thu, 28 Oct 2021 10:50:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=BB=98=E8=AE=A4=E6=8C=89=E7=85=A7=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=97=A5=E5=BF=97=E5=80=92=E5=8F=99=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/locale/zh/LC_MESSAGES/django.mo | 4 ++-- apps/locale/zh/LC_MESSAGES/django.po | 10 +++++----- apps/tickets/api/ticket.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/locale/zh/LC_MESSAGES/django.mo b/apps/locale/zh/LC_MESSAGES/django.mo index aa4a2071d..8d7ab082e 100644 --- a/apps/locale/zh/LC_MESSAGES/django.mo +++ b/apps/locale/zh/LC_MESSAGES/django.mo @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cc8a022ddc7438e50aa0cdb4ce24eec327638143731dbe0ed0ad783df06ecbaf -size 89882 +oid sha256:bdad14124356449843ef2e77801fd1add5147862488baa2f24f5f14f1ad8f125 +size 90869 diff --git a/apps/locale/zh/LC_MESSAGES/django.po b/apps/locale/zh/LC_MESSAGES/django.po index 763d0a248..64cea435b 100644 --- a/apps/locale/zh/LC_MESSAGES/django.po +++ b/apps/locale/zh/LC_MESSAGES/django.po @@ -98,7 +98,7 @@ msgstr "用户" #: acls/models/login_acl.py:29 msgid "Rule" -msgstr "" +msgstr "规则" #: acls/models/login_acl.py:32 acls/models/login_asset_acl.py:26 #: acls/serializers/login_acl.py:16 acls/serializers/login_asset_acl.py:75 @@ -240,7 +240,7 @@ msgstr "" #: acls/serializers/rules/rules.py:34 msgid "Time Period" -msgstr "" +msgstr "时段" #: applications/api/mixin.py:20 templates/_nav_user.html:10 msgid "My applications" @@ -927,7 +927,7 @@ msgstr "Ad 网域" #: assets/serializers/system_user.py:60 msgid "Is asset protocol" -msgstr "" +msgstr "资产协议" #: assets/serializers/system_user.py:100 msgid "Username same with user with protocol {} only allow 1" @@ -2427,7 +2427,7 @@ msgstr "监控告警" #: ops/notifications.py:22 msgid "Terminal health check warning" -msgstr "" +msgstr "终端健康状况检查警告" #: ops/notifications.py:63 #, python-brace-format @@ -4392,7 +4392,7 @@ msgstr "忽略证书认证" #: terminal/serializers/terminal.py:44 msgid "Load status" -msgstr "" +msgstr "负载状态" #: terminal/serializers/terminal.py:83 terminal/serializers/terminal.py:91 msgid "Not found" diff --git a/apps/tickets/api/ticket.py b/apps/tickets/api/ticket.py index 82fd8bd55..0c9b1d104 100644 --- a/apps/tickets/api/ticket.py +++ b/apps/tickets/api/ticket.py @@ -30,7 +30,7 @@ class TicketViewSet(CommonApiMixin, viewsets.ModelViewSet): 'title', 'action', 'type', 'status', 'applicant_display' ] ordering_fields = ('title', 'applicant_display', 'status', 'state', 'action_display', 'date_created') - ordering = ('title', ) + ordering = ('-date_created', ) def create(self, request, *args, **kwargs): raise MethodNotAllowed(self.action)