Add IATA airport codes

This commit is contained in:
Jeremy Stretch 2023-07-19 16:43:33 -04:00
parent 4dfeb2d0ed
commit 5b570d6922
3 changed files with 9772 additions and 0 deletions

View File

@ -68,10 +68,12 @@ class CustomFieldVisibilityChoices(ChoiceSet):
class CustomFieldChoiceSetBaseChoices(ChoiceSet): class CustomFieldChoiceSetBaseChoices(ChoiceSet):
IATA = 'IATA'
ISO_3166 = 'ISO_3166' ISO_3166 = 'ISO_3166'
UN_LOCODE = 'UN_LOCODE' UN_LOCODE = 'UN_LOCODE'
CHOICES = ( CHOICES = (
(IATA, 'IATA'),
(ISO_3166, 'ISO 3166'), (ISO_3166, 'ISO 3166'),
(UN_LOCODE, 'UN/LOCODE'), (UN_LOCODE, 'UN/LOCODE'),
) )

View File

@ -1,7 +1,9 @@
from .iata import IATA
from .iso_3166 import ISO_3166 from .iso_3166 import ISO_3166
from .un_locode import UN_LOCODE from .un_locode import UN_LOCODE
CHOICE_SETS = { CHOICE_SETS = {
'IATA': IATA,
'ISO_3166': ISO_3166, 'ISO_3166': ISO_3166,
'UN_LOCODE': UN_LOCODE, 'UN_LOCODE': UN_LOCODE,
} }

9768
netbox/extras/data/iata.py Normal file

File diff suppressed because it is too large Load Diff