|
33 | 33 | )
|
34 | 34 |
|
35 | 35 | # 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( |
37 | 37 | "<b>*Note:</b> CANNOT be set if action is set to remark.",
|
38 | 38 | )
|
39 | 39 | # Sets a standard help_text value to be used by the various classes for acl action
|
@@ -488,7 +488,7 @@ class ACLStandardRuleForm(NetBoxModelForm):
|
488 | 488 | source_prefix = DynamicModelChoiceField(
|
489 | 489 | queryset=Prefix.objects.all(),
|
490 | 490 | required=False,
|
491 |
| - help_text=help_text_acl_rule_logic, |
| 491 | + help_text=HELP_TEXT_ACL_RULE_LOGIC, |
492 | 492 | label="Source Prefix",
|
493 | 493 | )
|
494 | 494 |
|
@@ -571,13 +571,13 @@ class ACLExtendedRuleForm(NetBoxModelForm):
|
571 | 571 | source_prefix = DynamicModelChoiceField(
|
572 | 572 | queryset=Prefix.objects.all(),
|
573 | 573 | required=False,
|
574 |
| - help_text=help_text_acl_rule_logic, |
| 574 | + help_text=HELP_TEXT_ACL_RULE_LOGIC, |
575 | 575 | label="Source Prefix",
|
576 | 576 | )
|
577 | 577 | destination_prefix = DynamicModelChoiceField(
|
578 | 578 | queryset=Prefix.objects.all(),
|
579 | 579 | required=False,
|
580 |
| - help_text=help_text_acl_rule_logic, |
| 580 | + help_text=HELP_TEXT_ACL_RULE_LOGIC, |
581 | 581 | label="Destination Prefix",
|
582 | 582 | )
|
583 | 583 | fieldsets = (
|
@@ -618,13 +618,13 @@ class Meta:
|
618 | 618 | )
|
619 | 619 | help_texts = {
|
620 | 620 | "action": HELP_TEXT_ACL_ACTION,
|
621 |
| - "destination_ports": help_text_acl_rule_logic, |
| 621 | + "destination_ports": HELP_TEXT_ACL_RULE_LOGIC, |
622 | 622 | "index": HELP_TEXT_ACL_RULE_INDEX,
|
623 |
| - "protocol": help_text_acl_rule_logic, |
| 623 | + "protocol": HELP_TEXT_ACL_RULE_LOGIC, |
624 | 624 | "remark": mark_safe(
|
625 | 625 | "<b>*Note:</b> CANNOT be set if action is not set to remark.",
|
626 | 626 | ),
|
627 |
| - "source_ports": help_text_acl_rule_logic, |
| 627 | + "source_ports": HELP_TEXT_ACL_RULE_LOGIC, |
628 | 628 | }
|
629 | 629 |
|
630 | 630 | def clean(self):
|
|
0 commit comments