mirror of https://github.com/jumpserver/jumpserver
perf: ticket help text
parent
acfce4961c
commit
cbf91e4c29
|
@ -232,7 +232,7 @@ class DatesLoginMetricMixin:
|
|||
result = list(result)
|
||||
for i in result:
|
||||
tp = i['type']
|
||||
i['label'] = all_types_dict[tp]
|
||||
i['label'] = all_types_dict.get(tp, tp)
|
||||
return result
|
||||
|
||||
def get_dates_login_times_assets(self):
|
||||
|
|
|
@ -13,10 +13,18 @@ __all__ = ['ApplyAssetSerializer', 'ApproveAssetSerializer']
|
|||
|
||||
asset_or_node_help_text = _("Select at least one asset or node")
|
||||
|
||||
apply_help_text = _('Support fuzzy search, and display up to 10 items')
|
||||
|
||||
|
||||
class ApplyAssetSerializer(BaseApplyAssetSerializer, TicketApplySerializer):
|
||||
apply_assets = ObjectRelatedField(queryset=Asset.objects, many=True, required=False, label=_('Apply assets'))
|
||||
apply_nodes = ObjectRelatedField(queryset=Node.objects, many=True, required=False, label=_('Apply nodes'))
|
||||
apply_assets = ObjectRelatedField(
|
||||
queryset=Asset.objects, many=True, required=False,
|
||||
label=_('Apply assets'), help_text=apply_help_text
|
||||
)
|
||||
apply_nodes = ObjectRelatedField(
|
||||
queryset=Node.objects, many=True, required=False,
|
||||
label=_('Apply nodes'), help_text=apply_help_text
|
||||
)
|
||||
apply_actions = ActionChoicesField(required=False, allow_null=True, label=_("Apply actions"))
|
||||
permission_model = AssetPermission
|
||||
|
||||
|
|
Loading…
Reference in New Issue