Skip to content

Commit 007877f

Browse files
committed
fix constants
1 parent d0d892e commit 007877f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

netbox_acls/forms/models.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
)
3434

3535
# Sets a standard mark_safe help_text value to be used by the various classes
36-
help_text_acl_rule_logic = mark_safe(
36+
HELP_TEXT_ACL_RULE_LOGIC = mark_safe(
3737
"<b>*Note:</b> CANNOT be set if action is set to remark.",
3838
)
3939
# Sets a standard help_text value to be used by the various classes for acl action
@@ -488,7 +488,7 @@ class ACLStandardRuleForm(NetBoxModelForm):
488488
source_prefix = DynamicModelChoiceField(
489489
queryset=Prefix.objects.all(),
490490
required=False,
491-
help_text=help_text_acl_rule_logic,
491+
help_text=HELP_TEXT_ACL_RULE_LOGIC,
492492
label="Source Prefix",
493493
)
494494

@@ -571,13 +571,13 @@ class ACLExtendedRuleForm(NetBoxModelForm):
571571
source_prefix = DynamicModelChoiceField(
572572
queryset=Prefix.objects.all(),
573573
required=False,
574-
help_text=help_text_acl_rule_logic,
574+
help_text=HELP_TEXT_ACL_RULE_LOGIC,
575575
label="Source Prefix",
576576
)
577577
destination_prefix = DynamicModelChoiceField(
578578
queryset=Prefix.objects.all(),
579579
required=False,
580-
help_text=help_text_acl_rule_logic,
580+
help_text=HELP_TEXT_ACL_RULE_LOGIC,
581581
label="Destination Prefix",
582582
)
583583
fieldsets = (
@@ -618,13 +618,13 @@ class Meta:
618618
)
619619
help_texts = {
620620
"action": HELP_TEXT_ACL_ACTION,
621-
"destination_ports": help_text_acl_rule_logic,
621+
"destination_ports": HELP_TEXT_ACL_RULE_LOGIC,
622622
"index": HELP_TEXT_ACL_RULE_INDEX,
623-
"protocol": help_text_acl_rule_logic,
623+
"protocol": HELP_TEXT_ACL_RULE_LOGIC,
624624
"remark": mark_safe(
625625
"<b>*Note:</b> CANNOT be set if action is not set to remark.",
626626
),
627-
"source_ports": help_text_acl_rule_logic,
627+
"source_ports": HELP_TEXT_ACL_RULE_LOGIC,
628628
}
629629

630630
def clean(self):

0 commit comments

Comments
 (0)