1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #11780: Enable loading import data from remote sources

This commit is contained in:
jeremystretch
2023-03-14 14:53:26 -04:00
parent 8bd0a2ef9d
commit 1446b07f8c
7 changed files with 221 additions and 168 deletions

View File

@@ -203,6 +203,18 @@ class ButtonColorChoices(ChoiceSet):
# Import Choices
#
class ImportMethodChoices(ChoiceSet):
DIRECT = 'direct'
UPLOAD = 'upload'
DATA_FILE = 'datafile'
CHOICES = [
(DIRECT, 'Direct'),
(UPLOAD, 'Upload'),
(DATA_FILE, 'Data file'),
]
class ImportFormatChoices(ChoiceSet):
AUTO = 'auto'
CSV = 'csv'