Browse Source

perf: english traslation

pull/13446/head
ibuler 5 months ago
parent
commit
cd2af0dcf7
  1. 2
      apps/common/serializers/fields.py
  2. 2
      apps/i18n/lina/en.json
  3. 2
      apps/ops/serializers/job.py

2
apps/common/serializers/fields.py

@ -122,7 +122,7 @@ class LabelRelatedField(serializers.RelatedField):
from labels.models import LabeledResource, Label
if data is None:
return data
if isinstance(data, dict) and data.get("id"):
if isinstance(data, dict) and data.get("id") or data.get("pk"):
pk = data.get("id") or data.get("pk")
label = Label.objects.get(pk=pk)
else:

2
apps/i18n/lina/en.json

@ -150,7 +150,7 @@
"AssetTree": "Asset tree",
"Assets": "Assets",
"AssetsAmount": "Assets",
"AssetsOfNumber": "Number of asset",
"AssetsOfNumber": "Assets",
"AssetsTotal": "Total assets",
"AssignedInfo": "Approval information",
"Assignee": "Handler",

2
apps/ops/serializers/job.py

@ -49,7 +49,7 @@ class JobSerializer(BulkOrgResourceModelSerializer, PeriodTaskSerializerMixin):
"run_after_save"
]
extra_kwargs = {
'average_time_cost': {'label': _('Average time taken')},
'average_time_cost': {'label': _('Duration')},
}

Loading…
Cancel
Save