2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-16 01:36:29 +00:00

Use django_import_export

- Allows import / export to multiple file formats
- Provides admin interface
- Work to be done to perform data tweaking
- It would be really cool if the data fields could be associated 'intelligently'
 (i.e. not just based on PK, but name-lookup too).
This commit is contained in:
Oliver
2018-04-16 00:44:32 +10:00
parent 8e6de1b832
commit 1027e812bc
4 changed files with 19 additions and 5 deletions

View File

@@ -36,6 +36,7 @@ INSTALLED_APPS = [
'rest_framework',
'simple_history',
'crispy_forms',
'import_export',
# Core django modules
'django.contrib.admin',
@@ -147,4 +148,8 @@ MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# crispy forms use the bootstrap templates
CRISPY_TEMPLATE_PACK = 'bootstrap'
# Use database transactions when importing / exporting data
IMPORT_EXPORT_USE_TRANSACTIONS = True