perf: english traslation

pull/13446/head
ibuler 5 months ago
parent 523468f7af
commit cd2af0dcf7

@ -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:

@ -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",

@ -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