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:
parent
efa2ad542d
commit
0ece82c812
@ -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 = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user