From 0ece82c812932c6730b8c182c77fcdd53ab830ab Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 18 Nov 2021 16:25:49 +0100 Subject: [PATCH] add labels / helptexts to serializer --- InvenTree/plugin/serializers.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/InvenTree/plugin/serializers.py b/InvenTree/plugin/serializers.py index edf40fd7e4..20ff55052e 100644 --- a/InvenTree/plugin/serializers.py +++ b/InvenTree/plugin/serializers.py @@ -43,12 +43,19 @@ class PluginConfigInstallSerializer(serializers.Serializer): url = serializers.CharField( required=False, allow_blank=True, + label=_('source URL'), + help_text=_('Source for the package - this can be a custom registry or a VCS path') ) packagename = serializers.CharField( required=False, allow_blank=True, + label=_('Package Name'), + help_text=_('Name for the Plugin Package - can also contain a version indicator'), + ) + confirm = serializers.BooleanField( + label=_('Confirm plugin installation'), + help_text=_('This will install this plugin now into the current instance. The instance will go into maintenance.') ) - confirm = serializers.BooleanField() class Meta: fields = [