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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user