From 30a168a33e1f19c8fdf87818c65b3e898454ec89 Mon Sep 17 00:00:00 2001 From: Arthur Date: Fri, 9 Jun 2023 14:40:41 -0700 Subject: [PATCH] 125890 fixes --- netbox/users/forms/model_forms.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/netbox/users/forms/model_forms.py b/netbox/users/forms/model_forms.py index dd30a0813..39929afa1 100644 --- a/netbox/users/forms/model_forms.py +++ b/netbox/users/forms/model_forms.py @@ -229,11 +229,20 @@ class ObjectPermissionForm(BootstrapMixin, forms.ModelForm): fields = [ 'name', 'description', 'enabled', 'object_types', 'users', 'groups', 'constraints', 'actions', ] + help_texts = { + 'actions': _('Actions granted in addition to those listed above'), + 'constraints': _('JSON expression of a queryset filter that will return only permitted objects. Leave null ' + 'to match all objects of this type. A list of multiple objects will result in a logical OR ' + 'operation.') + } + labels = { + 'actions': 'Additional actions' + } def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - # Make the actions field optional since the admin form uses it only for non-CRUD actions + # Make the actions field optional since the form uses it only for non-CRUD actions self.fields['actions'].required = False # Order group and user fields