mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
Add IATA airport codes
This commit is contained in:
parent
4dfeb2d0ed
commit
5b570d6922
@ -68,10 +68,12 @@ class CustomFieldVisibilityChoices(ChoiceSet):
|
||||
|
||||
class CustomFieldChoiceSetBaseChoices(ChoiceSet):
|
||||
|
||||
IATA = 'IATA'
|
||||
ISO_3166 = 'ISO_3166'
|
||||
UN_LOCODE = 'UN_LOCODE'
|
||||
|
||||
CHOICES = (
|
||||
(IATA, 'IATA'),
|
||||
(ISO_3166, 'ISO 3166'),
|
||||
(UN_LOCODE, 'UN/LOCODE'),
|
||||
)
|
||||
|
@ -1,7 +1,9 @@
|
||||
from .iata import IATA
|
||||
from .iso_3166 import ISO_3166
|
||||
from .un_locode import UN_LOCODE
|
||||
|
||||
CHOICE_SETS = {
|
||||
'IATA': IATA,
|
||||
'ISO_3166': ISO_3166,
|
||||
'UN_LOCODE': UN_LOCODE,
|
||||
}
|
||||
|
9768
netbox/extras/data/iata.py
Normal file
9768
netbox/extras/data/iata.py
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user