2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 12:36:45 +00:00

add labels / helptexts to serializer

This commit is contained in:
Matthias 2021-11-18 16:25:49 +01:00
parent efa2ad542d
commit 0ece82c812
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -43,12 +43,19 @@ class PluginConfigInstallSerializer(serializers.Serializer):
url = serializers.CharField( url = serializers.CharField(
required=False, required=False,
allow_blank=True, 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( packagename = serializers.CharField(
required=False, required=False,
allow_blank=True, 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: class Meta:
fields = [ fields = [