Searched refs:CableLengthUnitChoices (Results 1 – 8 of 8) sorted by relevance
/dports/net-mgmt/netbox/netbox-3.0.12/netbox/utilities/ |
H A D | utils.py | 14 from dcim.choices import CableLengthUnitChoices 200 valid_units = CableLengthUnitChoices.values() 206 if unit == CableLengthUnitChoices.UNIT_KILOMETER: 208 if unit == CableLengthUnitChoices.UNIT_METER: 210 if unit == CableLengthUnitChoices.UNIT_CENTIMETER: 212 if unit == CableLengthUnitChoices.UNIT_MILE: 214 if unit == CableLengthUnitChoices.UNIT_FOOT: 216 if unit == CableLengthUnitChoices.UNIT_INCH:
|
/dports/net-mgmt/netbox/netbox-3.0.12/netbox/dcim/models/ |
H A D | cables.py | 85 choices=CableLengthUnitChoices,
|
/dports/net-mgmt/netbox/netbox-3.0.12/netbox/dcim/ |
H A D | choices.py | 1138 class CableLengthUnitChoices(ChoiceSet): class
|
/dports/net-mgmt/netbox/netbox-3.0.12/netbox/dcim/tests/ |
H A D | test_filtersets.py | 2867 …Choices.STATUS_CONNECTED, color='aa1409', length=10, length_unit=CableLengthUnitChoices.UNIT_FOOT)… 2868 …Choices.STATUS_CONNECTED, color='aa1409', length=20, length_unit=CableLengthUnitChoices.UNIT_FOOT)… 2869 …Choices.STATUS_CONNECTED, color='f44336', length=30, length_unit=CableLengthUnitChoices.UNIT_FOOT)… 2870 …usChoices.STATUS_PLANNED, color='f44336', length=40, length_unit=CableLengthUnitChoices.UNIT_FOOT)… 2871 …usChoices.STATUS_PLANNED, color='e91e63', length=10, length_unit=CableLengthUnitChoices.UNIT_METER… 2872 …usChoices.STATUS_PLANNED, color='e91e63', length=20, length_unit=CableLengthUnitChoices.UNIT_METER… 2884 params = {'length_unit': CableLengthUnitChoices.UNIT_FOOT}
|
H A D | test_views.py | 1815 'length_unit': CableLengthUnitChoices.UNIT_FOOT, 1832 'length_unit': CableLengthUnitChoices.UNIT_METER,
|
/dports/net-mgmt/netbox/netbox-3.0.12/netbox/dcim/forms/ |
H A D | bulk_import.py | 814 choices=CableLengthUnitChoices,
|
H A D | bulk_edit.py | 469 choices=add_blank_choice(CableLengthUnitChoices),
|
/dports/net-mgmt/netbox/netbox-3.0.12/netbox/dcim/api/ |
H A D | serializers.py | 760 length_unit = ChoiceField(choices=CableLengthUnitChoices, allow_blank=True, required=False)
|