mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-27 03:41:43 +01:00
Refactor: move resolve_module_placeholders from constants.py to utils.py
Constants should only contain constant values, not functions with logic. The helper function now lives in dcim/utils.py alongside other utilities like update_interface_bridges and create_port_mappings.
This commit is contained in:
@@ -8,6 +8,7 @@ from mptt.models import MPTTModel, TreeForeignKey
|
||||
from dcim.choices import *
|
||||
from dcim.constants import *
|
||||
from dcim.models.base import PortMappingBase
|
||||
from dcim.utils import resolve_module_placeholders
|
||||
from dcim.models.mixins import InterfaceValidationMixin
|
||||
from netbox.models import ChangeLoggedModel
|
||||
from utilities.fields import ColorField, NaturalOrderingField
|
||||
|
||||
Reference in New Issue
Block a user