Coverage for circuits/models/base.py: 100%
8 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
1from django.utils.translation import gettext_lazy as _
3from netbox.models import OrganizationalModel
4from utilities.fields import ColorField
6__all__ = (
7 'BaseCircuitType',
8)
11class BaseCircuitType(OrganizationalModel):
12 """
13 Abstract base model to represent a type of physical or virtual circuit.
14 Circuits can be organized by their functional role. For example, a user might wish to define CircuitTypes named
15 "Long Haul," "Metro," or "Out-of-Band".
16 """
17 color = ColorField(
18 verbose_name=_('color'),
19 blank=True
20 )
22 class Meta:
23 abstract = True