mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* 4347 initial code for json import * 4347 initial code for json import * Clean up form processing logic * Consolidate import forms * Consolidate object import/update logic * Clean up bulk import view Co-authored-by: jeremystretch <jstretch@ns1.com>
18 lines
247 B
Python
18 lines
247 B
Python
from utilities.choices import ChoiceSet
|
|
|
|
|
|
#
|
|
# Import Choices
|
|
#
|
|
|
|
class ImportFormatChoices(ChoiceSet):
|
|
CSV = 'csv'
|
|
JSON = 'json'
|
|
YAML = 'yaml'
|
|
|
|
CHOICES = [
|
|
(CSV, 'CSV'),
|
|
(JSON, 'JSON'),
|
|
(YAML, 'YAML'),
|
|
]
|