add import and export functionality

This commit is contained in:
Tobias Brunner 2025-05-20 14:26:31 +02:00
parent cc5307a723
commit f14cc0e39e
No known key found for this signature in database
4 changed files with 68 additions and 2 deletions

View file

@ -1,5 +1,6 @@
from pathlib import Path
from environs import Env
from import_export.formats.base_formats import CSV
env = Env()
env.read_env()
@ -79,6 +80,7 @@ INSTALLED_APPS = [
"schema_viewer",
"nested_admin",
"adminsortable2",
"import_export",
# local
"hub.services",
"hub.broker",
@ -245,3 +247,5 @@ JAZZMIN_SETTINGS = {
"show_sidebar": True,
"navigation_expanded": True,
}
IMPORT_EXPORT_FORMATS = [CSV]