django-import-export 4.2.0__tar.gz → 4.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.pre-commit-config.yaml +1 -1
- django_import_export-4.2.1/.readthedocs.yaml +16 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/Makefile +3 -3
- {django_import_export-4.2.0 → django_import_export-4.2.1}/PKG-INFO +16 -2
- {django_import_export-4.2.0 → django_import_export-4.2.1}/README.rst +2 -1
- {django_import_export-4.2.0 → django_import_export-4.2.1}/django_import_export.egg-info/PKG-INFO +16 -2
- {django_import_export-4.2.0 → django_import_export-4.2.1}/django_import_export.egg-info/SOURCES.txt +0 -3
- django_import_export-4.2.1/django_import_export.egg-info/requires.txt +39 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/admin_integration.rst +14 -4
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/advanced_usage.rst +25 -2
- django_import_export-4.2.1/docs/celery.rst +10 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/changelog.rst +7 -1
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/contributing.rst +1 -1
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/faq.rst +1 -1
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/testing.rst +1 -1
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/_version.py +2 -2
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/options.py +2 -2
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/resources.py +1 -1
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/widgets.py +6 -2
- {django_import_export-4.2.0 → django_import_export-4.2.1}/pyproject.toml +15 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/runtests.sh +0 -3
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/admin_integration/test_export.py +99 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/docker-compose.yml +10 -1
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tox.ini +1 -1
- django_import_export-4.2.0/.readthedocs.yaml +0 -20
- django_import_export-4.2.0/django_import_export.egg-info/requires.txt +0 -24
- django_import_export-4.2.0/docs/celery.rst +0 -8
- django_import_export-4.2.0/requirements/base.txt +0 -3
- django_import_export-4.2.0/requirements/docs.txt +0 -4
- django_import_export-4.2.0/requirements/test.txt +0 -9
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.coveragerc +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.editorconfig +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.flake8 +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.git-blame-ignore-revs +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.github/FUNDING.yml +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.github/ISSUE_TEMPLATE/question.md +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.github/pull_request_template.md +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.github/stale.yml +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.github/workflows/release.yml +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.github/workflows/test.yml +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/.gitignore +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/AUTHORS +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/CODE_OF_CONDUCT.md +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/CONTRIBUTING.md +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/LICENSE +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/RELEASE.md +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/SECURITY.md +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/django_import_export.egg-info/dependency_links.txt +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/django_import_export.egg-info/top_level.txt +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/Makefile +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/change-form-export.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/custom-export-form.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/custom-import-form.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/date-widget-validation-error.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/django-import-export-change.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/django-import-export-export-confirm.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/django-import-export-import-confirm.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/django-import-export-import.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/export-button.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/export_workflow.svg +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/import-button.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/import_workflow.svg +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/non-field-specific-validation-error.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/screenshots/confirm-import.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/screenshots/export-form.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/screenshots/export-selected-action.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/screenshots/import-complete.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/screenshots/import-form.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/screenshots/import-update-with-authors.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/_static/images/select-for-export.png +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/api_admin.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/api_exceptions.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/api_fields.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/api_forms.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/api_instance_loaders.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/api_mixins.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/api_resources.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/api_results.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/api_tmp_storages.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/api_widgets.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/bulk_import.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/conf.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/export_workflow.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/getting_started.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/image_src/export_workflow.txt +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/image_src/import_workflow.txt +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/import_workflow.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/index.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/installation.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/make.bat +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/release_notes.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/docs/screenshots.rst +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/__init__.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/admin.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/declarative.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/exceptions.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/fields.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/formats/__init__.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/formats/base_formats.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/forms.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/instance_loaders.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/ar/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/ar/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/bg/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/bg/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/ca/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/ca/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/cs/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/cs/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/de/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/de/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/es/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/es/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/es_AR/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/es_AR/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/fa/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/fa/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/fi/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/fi/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/fr/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/fr/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/it/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/it/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/ja/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/ja/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/ko/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/ko/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/kz/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/kz/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/nl/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/nl/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/pl/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/pl/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/pt_BR/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/ru/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/ru/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/sk/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/sk/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/tr/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/tr/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/locale/zh_Hans/LC_MESSAGES/django.po +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/mixins.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/results.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/signals.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/static/import_export/export.css +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/static/import_export/export_selectable_fields.js +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/static/import_export/guess_format.js +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/static/import_export/import.css +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templates/admin/import_export/base.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templates/admin/import_export/change_form.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templates/admin/import_export/change_list.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templates/admin/import_export/change_list_export.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templates/admin/import_export/change_list_export_item.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templates/admin/import_export/change_list_import.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templates/admin/import_export/change_list_import_export.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templates/admin/import_export/change_list_import_item.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templates/admin/import_export/export.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templates/admin/import_export/import.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templates/admin/import_export/resource_fields_list.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templatetags/__init__.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/templatetags/import_export_tags.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/tmp_storages.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/import_export/utils.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/setup.cfg +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/books-sample.csv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/__init__.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/admin.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/authors.csv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books-ISO-8859-1.csv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books-dos.csv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books-empty-author-email.xlsx +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books-for-delete.csv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books-invalid-date.csv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books-mac.csv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books-mac.tsv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books-no-headers.csv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books-unicode.csv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books-unicode.tsv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books.csv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books.json +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books.xls +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/books.xlsx +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/child.csv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/exports/ebooks.csv +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/fixtures/author.json +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/fixtures/book.json +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/fixtures/category.json +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/forms.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0001_initial.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0002_book_published_time.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0003_withfloatfield.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0004_bookwithchapters.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0005_addparentchild.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0006_auto_20171130_0147.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0007_auto_20180628_0411.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0008_auto_20190409_0846.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0009_auto_20211111_0807.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0010_uuidbook.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0011_uuidcategory_legacybook_alter_uuidbook_id_and_more.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0012_delete_legacybook.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0013_alter_author_birthday.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0014_bookwithchapternumbers.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0015_withpositiveintegerfields.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0016_alter_category_options_alter_uuidcategory_options.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/0017_namedauthor_uuidbook_author.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/migrations/__init__.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/models.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/templates/core/admin/change_list.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/templates/core/category_list.html +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/__init__.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/admin_integration/__init__.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/admin_integration/mixins.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/admin_integration/test_action_export.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/admin_integration/test_import_encoding.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/admin_integration/test_import_errors.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/admin_integration/test_import_functionality.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/admin_integration/test_import_security.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/admin_integration/test_import_templates.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/admin_integration/test_views.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/resources.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_base_formats.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_declarative.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_fields.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_forms.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_import_export_tags.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_instance_loaders.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_invalidrow.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_mixins.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_model_resource_fields_generate_widgets.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_permissions.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/__init__.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_bulk_operations.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_diffs.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_import_export.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_misc.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/__init__.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_data_deletion.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_data_handling.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_data_import.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_deprecated_fields.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_dynamic_customization.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_error_handling.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_export.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_fields.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_m2m.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_queryset.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_relationship.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_resource.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_resource_factory.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_resource_fields.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_resource_postgres.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_resource_setup.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_resource_transactions.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_string_resource.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_modelresource/test_widget.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_natural_foreign_key.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_resources/test_relationships.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_results.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_tmp_storages.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/test_widgets.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/utils.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/tests/widget.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/core/views.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/docker/db/init-mysql-db.sh +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/docker/db/init-postgres-db.sh +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/manage.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/scripts/__init__.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/scripts/bulk_import.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/settings.py +0 -0
- {django_import_export-4.2.0 → django_import_export-4.2.1}/tests/urls.py +0 -0
|
@@ -42,13 +42,13 @@ sdist: clean ## package
|
|
|
42
42
|
ls -l dist
|
|
43
43
|
|
|
44
44
|
install-base-requirements: ## install package requirements
|
|
45
|
-
pip install
|
|
45
|
+
pip install .
|
|
46
46
|
|
|
47
47
|
install-test-requirements: ## install requirements for testing
|
|
48
|
-
pip install
|
|
48
|
+
pip install .[tests]
|
|
49
49
|
|
|
50
50
|
install-docs-requirements: ## install requirements for docs
|
|
51
|
-
pip install
|
|
51
|
+
pip install --editable .[docs]
|
|
52
52
|
|
|
53
53
|
install-requirements: install-base-requirements install-test-requirements install-docs-requirements
|
|
54
54
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-import-export
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.1
|
|
4
4
|
Summary: Django application and library for importing and exporting data with included admin integration.
|
|
5
5
|
Author-email: Bojan Mihelač <djangoimportexport@gmail.com>
|
|
6
6
|
Maintainer-email: Matthew Hegarty <djangoimportexport@gmail.com>
|
|
@@ -70,6 +70,19 @@ Provides-Extra: xlsx
|
|
|
70
70
|
Requires-Dist: tablib[xlsx]; extra == "xlsx"
|
|
71
71
|
Provides-Extra: yaml
|
|
72
72
|
Requires-Dist: tablib[yaml]; extra == "yaml"
|
|
73
|
+
Provides-Extra: docs
|
|
74
|
+
Requires-Dist: sphinx==8.1.3; extra == "docs"
|
|
75
|
+
Requires-Dist: sphinx-rtd-theme==3.0.1; extra == "docs"
|
|
76
|
+
Provides-Extra: tests
|
|
77
|
+
Requires-Dist: psycopg2-binary==2.9.10; extra == "tests"
|
|
78
|
+
Requires-Dist: mysqlclient==2.2.5; extra == "tests"
|
|
79
|
+
Requires-Dist: chardet==5.2.0; extra == "tests"
|
|
80
|
+
Requires-Dist: pytz==2024.2; extra == "tests"
|
|
81
|
+
Requires-Dist: memory-profiler==0.61.0; extra == "tests"
|
|
82
|
+
Requires-Dist: django-extensions==3.2.3; extra == "tests"
|
|
83
|
+
Requires-Dist: coverage==7.6.4; extra == "tests"
|
|
84
|
+
Requires-Dist: tablib[all]>=3.7.0; extra == "tests"
|
|
85
|
+
Requires-Dist: setuptools-scm==8.1.0; extra == "tests"
|
|
73
86
|
|
|
74
87
|
====================
|
|
75
88
|
django-import-export
|
|
@@ -185,8 +198,9 @@ Help and support
|
|
|
185
198
|
* `Getting help <https://django-import-export.readthedocs.io/en/latest/faq.html#what-s-the-best-way-to-communicate-a-problem-question-or-suggestion>`_
|
|
186
199
|
* `Contributing <https://django-import-export.readthedocs.io/en/latest/faq.html#how-can-i-help>`_
|
|
187
200
|
* Become a `sponsor <https://github.com/sponsors/django-import-export>`_
|
|
188
|
-
* `Raise a security issue <https://github.com/django-import-export/django-import-export/blob/main/SECURITY.md>`_
|
|
189
201
|
* Join our `discord <https://discord.gg/aCcec52kY4>`_
|
|
202
|
+
* Tutorial videos on `YouTube <https://www.youtube.com/results?search_query=django-import-export>`_
|
|
203
|
+
* `Raise a security issue <https://github.com/django-import-export/django-import-export/blob/main/SECURITY.md>`_
|
|
190
204
|
|
|
191
205
|
Commercial support
|
|
192
206
|
==================
|
|
@@ -112,8 +112,9 @@ Help and support
|
|
|
112
112
|
* `Getting help <https://django-import-export.readthedocs.io/en/latest/faq.html#what-s-the-best-way-to-communicate-a-problem-question-or-suggestion>`_
|
|
113
113
|
* `Contributing <https://django-import-export.readthedocs.io/en/latest/faq.html#how-can-i-help>`_
|
|
114
114
|
* Become a `sponsor <https://github.com/sponsors/django-import-export>`_
|
|
115
|
-
* `Raise a security issue <https://github.com/django-import-export/django-import-export/blob/main/SECURITY.md>`_
|
|
116
115
|
* Join our `discord <https://discord.gg/aCcec52kY4>`_
|
|
116
|
+
* Tutorial videos on `YouTube <https://www.youtube.com/results?search_query=django-import-export>`_
|
|
117
|
+
* `Raise a security issue <https://github.com/django-import-export/django-import-export/blob/main/SECURITY.md>`_
|
|
117
118
|
|
|
118
119
|
Commercial support
|
|
119
120
|
==================
|
{django_import_export-4.2.0 → django_import_export-4.2.1}/django_import_export.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-import-export
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.1
|
|
4
4
|
Summary: Django application and library for importing and exporting data with included admin integration.
|
|
5
5
|
Author-email: Bojan Mihelač <djangoimportexport@gmail.com>
|
|
6
6
|
Maintainer-email: Matthew Hegarty <djangoimportexport@gmail.com>
|
|
@@ -70,6 +70,19 @@ Provides-Extra: xlsx
|
|
|
70
70
|
Requires-Dist: tablib[xlsx]; extra == "xlsx"
|
|
71
71
|
Provides-Extra: yaml
|
|
72
72
|
Requires-Dist: tablib[yaml]; extra == "yaml"
|
|
73
|
+
Provides-Extra: docs
|
|
74
|
+
Requires-Dist: sphinx==8.1.3; extra == "docs"
|
|
75
|
+
Requires-Dist: sphinx-rtd-theme==3.0.1; extra == "docs"
|
|
76
|
+
Provides-Extra: tests
|
|
77
|
+
Requires-Dist: psycopg2-binary==2.9.10; extra == "tests"
|
|
78
|
+
Requires-Dist: mysqlclient==2.2.5; extra == "tests"
|
|
79
|
+
Requires-Dist: chardet==5.2.0; extra == "tests"
|
|
80
|
+
Requires-Dist: pytz==2024.2; extra == "tests"
|
|
81
|
+
Requires-Dist: memory-profiler==0.61.0; extra == "tests"
|
|
82
|
+
Requires-Dist: django-extensions==3.2.3; extra == "tests"
|
|
83
|
+
Requires-Dist: coverage==7.6.4; extra == "tests"
|
|
84
|
+
Requires-Dist: tablib[all]>=3.7.0; extra == "tests"
|
|
85
|
+
Requires-Dist: setuptools-scm==8.1.0; extra == "tests"
|
|
73
86
|
|
|
74
87
|
====================
|
|
75
88
|
django-import-export
|
|
@@ -185,8 +198,9 @@ Help and support
|
|
|
185
198
|
* `Getting help <https://django-import-export.readthedocs.io/en/latest/faq.html#what-s-the-best-way-to-communicate-a-problem-question-or-suggestion>`_
|
|
186
199
|
* `Contributing <https://django-import-export.readthedocs.io/en/latest/faq.html#how-can-i-help>`_
|
|
187
200
|
* Become a `sponsor <https://github.com/sponsors/django-import-export>`_
|
|
188
|
-
* `Raise a security issue <https://github.com/django-import-export/django-import-export/blob/main/SECURITY.md>`_
|
|
189
201
|
* Join our `discord <https://discord.gg/aCcec52kY4>`_
|
|
202
|
+
* Tutorial videos on `YouTube <https://www.youtube.com/results?search_query=django-import-export>`_
|
|
203
|
+
* `Raise a security issue <https://github.com/django-import-export/django-import-export/blob/main/SECURITY.md>`_
|
|
190
204
|
|
|
191
205
|
Commercial support
|
|
192
206
|
==================
|
{django_import_export-4.2.0 → django_import_export-4.2.1}/django_import_export.egg-info/SOURCES.txt
RENAMED
|
@@ -156,9 +156,6 @@ import_export/templates/admin/import_export/import.html
|
|
|
156
156
|
import_export/templates/admin/import_export/resource_fields_list.html
|
|
157
157
|
import_export/templatetags/__init__.py
|
|
158
158
|
import_export/templatetags/import_export_tags.py
|
|
159
|
-
requirements/base.txt
|
|
160
|
-
requirements/docs.txt
|
|
161
|
-
requirements/test.txt
|
|
162
159
|
tests/books-sample.csv
|
|
163
160
|
tests/docker-compose.yml
|
|
164
161
|
tests/manage.py
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
diff-match-patch==20241021
|
|
2
|
+
Django>=4.2
|
|
3
|
+
tablib==3.7.0
|
|
4
|
+
|
|
5
|
+
[all]
|
|
6
|
+
tablib[all]
|
|
7
|
+
|
|
8
|
+
[cli]
|
|
9
|
+
tablib[cli]
|
|
10
|
+
|
|
11
|
+
[docs]
|
|
12
|
+
sphinx==8.1.3
|
|
13
|
+
sphinx-rtd-theme==3.0.1
|
|
14
|
+
|
|
15
|
+
[ods]
|
|
16
|
+
tablib[ods]
|
|
17
|
+
|
|
18
|
+
[pandas]
|
|
19
|
+
tablib[pandas]
|
|
20
|
+
|
|
21
|
+
[tests]
|
|
22
|
+
psycopg2-binary==2.9.10
|
|
23
|
+
mysqlclient==2.2.5
|
|
24
|
+
chardet==5.2.0
|
|
25
|
+
pytz==2024.2
|
|
26
|
+
memory-profiler==0.61.0
|
|
27
|
+
django-extensions==3.2.3
|
|
28
|
+
coverage==7.6.4
|
|
29
|
+
tablib[all]>=3.7.0
|
|
30
|
+
setuptools-scm==8.1.0
|
|
31
|
+
|
|
32
|
+
[xls]
|
|
33
|
+
tablib[xls]
|
|
34
|
+
|
|
35
|
+
[xlsx]
|
|
36
|
+
tablib[xlsx]
|
|
37
|
+
|
|
38
|
+
[yaml]
|
|
39
|
+
tablib[yaml]
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
Admin integration
|
|
5
5
|
=================
|
|
6
6
|
|
|
7
|
-
One of the main features of import-export is the support for integration with the
|
|
8
|
-
`Django Admin site <https://docs.djangoproject.com/en/stable/ref/contrib/admin/>`_.
|
|
7
|
+
One of the main features of import-export is the support for integration with the Django Admin site.
|
|
9
8
|
This provides a convenient interface for importing and exporting Django objects.
|
|
9
|
+
Refer to the `Django Admin documentation <https://docs.djangoproject.com/en/stable/ref/contrib/admin/>`_ for details
|
|
10
|
+
of how to enable and configure the admin site.
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
You can also install and run the :ref:`example application<exampleapp>` to become familiar with Admin integration.
|
|
12
13
|
|
|
13
14
|
Integrating import-export with your application requires extra configuration.
|
|
14
15
|
|
|
@@ -19,13 +20,14 @@ mixins (:class:`~import_export.admin.ImportMixin`,
|
|
|
19
20
|
:class:`~import_export.admin.ImportExportMixin`)::
|
|
20
21
|
|
|
21
22
|
# app/admin.py
|
|
23
|
+
from django.contrib import admin
|
|
22
24
|
from .models import Book
|
|
23
25
|
from import_export.admin import ImportExportModelAdmin
|
|
24
26
|
|
|
27
|
+
@admin.register(Book)
|
|
25
28
|
class BookAdmin(ImportExportModelAdmin):
|
|
26
29
|
resource_classes = [BookResource]
|
|
27
30
|
|
|
28
|
-
admin.site.register(Book, BookAdmin)
|
|
29
31
|
|
|
30
32
|
Once this configuration is present (and server is restarted), 'import' and 'export' buttons will be presented to the
|
|
31
33
|
user.
|
|
@@ -72,6 +74,9 @@ The two step process is:
|
|
|
72
74
|
|
|
73
75
|
A screenshot of the 'confirm import' view.
|
|
74
76
|
|
|
77
|
+
|
|
78
|
+
.. _import_confirmation:
|
|
79
|
+
|
|
75
80
|
Import confirmation
|
|
76
81
|
-------------------
|
|
77
82
|
|
|
@@ -99,6 +104,9 @@ Your choice of temporary storage will be influenced by the following factors:
|
|
|
99
104
|
|
|
100
105
|
Temporary resources are removed when data is successfully imported after the confirmation step.
|
|
101
106
|
|
|
107
|
+
**For sensitive data you will need to understand exactly how temporary files are being stored and to ensure
|
|
108
|
+
that data is properly secured and managed.**
|
|
109
|
+
|
|
102
110
|
.. warning::
|
|
103
111
|
|
|
104
112
|
If users do not complete the confirmation step of the workflow,
|
|
@@ -106,6 +114,8 @@ Temporary resources are removed when data is successfully imported after the con
|
|
|
106
114
|
This will need to be understood and managed in production settings.
|
|
107
115
|
For example, using a cache expiration policy or cron job to clear stale resources.
|
|
108
116
|
|
|
117
|
+
.. _customizable_storage:
|
|
118
|
+
|
|
109
119
|
Customizable storage
|
|
110
120
|
^^^^^^^^^^^^^^^^^^^^^
|
|
111
121
|
|
|
@@ -409,7 +409,7 @@ csv file, then we can have a single field which references an author by name.
|
|
|
409
409
|
|
|
410
410
|
We would have to declare our ``BookResource`` to use the author name as the foreign key reference::
|
|
411
411
|
|
|
412
|
-
from import_export import fields
|
|
412
|
+
from import_export import fields
|
|
413
413
|
from import_export.widgets import ForeignKeyWidget
|
|
414
414
|
|
|
415
415
|
class BookResource(resources.ModelResource):
|
|
@@ -827,6 +827,26 @@ The :meth:`~import_export.resources.Resource.after_export` method allows you to
|
|
|
827
827
|
|
|
828
828
|
This can be useful for adding dynamic columns or applying custom logic to the final dataset.
|
|
829
829
|
|
|
830
|
+
Import and export with different fields
|
|
831
|
+
=======================================
|
|
832
|
+
|
|
833
|
+
If you would like to import one set of fields, and then export a different set, then the recommended way to do this
|
|
834
|
+
is to define two resources::
|
|
835
|
+
|
|
836
|
+
class BookImportResource(ModelResource):
|
|
837
|
+
class Meta:
|
|
838
|
+
model = Book
|
|
839
|
+
fields = ["id", "name"]
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
class BookExportResource(ModelResource):
|
|
843
|
+
class Meta:
|
|
844
|
+
model = Book
|
|
845
|
+
fields = ["id", "name", "published"]
|
|
846
|
+
|
|
847
|
+
If you are using these resources in the Admin UI, declare them in your
|
|
848
|
+
:ref:`admin class<import_export_skip_admin_confirm>`.
|
|
849
|
+
|
|
830
850
|
Modify xlsx format
|
|
831
851
|
==================
|
|
832
852
|
|
|
@@ -909,4 +929,7 @@ This issue may be more prevalent if using :doc:`bulk imports<bulk_import>`. Thi
|
|
|
909
929
|
memory for longer before being written in bulk, therefore there is potentially more risk of another process modifying
|
|
910
930
|
an instance before it has been persisted.
|
|
911
931
|
|
|
912
|
-
|
|
932
|
+
Additional configuration
|
|
933
|
+
========================
|
|
934
|
+
|
|
935
|
+
Please refer to the :doc:`API documentation<api_resources>` for additional configuration options.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
.. _celery:
|
|
2
|
+
|
|
3
|
+
===========
|
|
4
|
+
Using celery
|
|
5
|
+
===========
|
|
6
|
+
|
|
7
|
+
You can use one of the third-party applications to process long imports and exports in Celery:
|
|
8
|
+
|
|
9
|
+
* `django-import-export-celery <https://github.com/auto-mat/django-import-export-celery>`_ (`PyPI <https://pypi.org/project/django-import-export-celery>`_)
|
|
10
|
+
* `django-import-export-extensions <https://github.com/saritasa-nest/django-import-export-extensions>`_ (`PyPI <https://pypi.org/project/django-import-export-extensions>`_)
|
|
@@ -5,6 +5,13 @@ Changelog
|
|
|
5
5
|
|
|
6
6
|
If upgrading from v3, v4 introduces breaking changes. Please refer to :doc:`release notes<release_notes>`.
|
|
7
7
|
|
|
8
|
+
4.2.1 (2024-11-11)
|
|
9
|
+
------------------
|
|
10
|
+
|
|
11
|
+
- Removed dependency files in favour of ``pyproject.toml`` (`1982 <https://github.com/django-import-export/django-import-export/issues/1982>`_)
|
|
12
|
+
- Documentation updates (`1989 <https://github.com/django-import-export/django-import-export/issues/1989>`_)
|
|
13
|
+
- Fix crash on export of tz-aware datetime to binary formats (`1995 <https://github.com/django-import-export/django-import-export/issues/1995>`_)
|
|
14
|
+
|
|
8
15
|
4.2.0 (2024-10-23)
|
|
9
16
|
------------------
|
|
10
17
|
|
|
@@ -20,7 +27,6 @@ This release contains breaking changes. Please refer to :doc:`release notes<rel
|
|
|
20
27
|
- Update date, time and datetime widget render method to handle derived instance (`1918 <https://github.com/django-import-export/django-import-export/issues/1918>`_)
|
|
21
28
|
- Add support for Django 5.1 (`1926 <https://github.com/django-import-export/django-import-export/issues/1926>`_)
|
|
22
29
|
- Accept numbers using the numeric separators of the current language in number widgets (:meth:`~import_export.widgets.FloatWidget`, :meth:`~import_export.widgets.IntegerWidget`, :meth:`~import_export.widgets.DecimalWidget`) (`1927 <https://github.com/django-import-export/django-import-export/issues/1927>`_)
|
|
23
|
-
- Fix v3 regression: handle native types on export to spreadsheet (`1927 <https://github.com/django-import-export/django-import-export/issues/1927>`_)
|
|
24
30
|
- Added warning for declared fields excluded from fields whitelist (`1930 <https://github.com/django-import-export/django-import-export/issues/1930>`_)
|
|
25
31
|
- Fix v3 regression: handle native types on export to spreadsheet (`1939 <https://github.com/django-import-export/django-import-export/issues/1939>`_)
|
|
26
32
|
- Fix export button displayed on change screen when export permission not assigned (`1942 <https://github.com/django-import-export/django-import-export/issues/1942>`_)
|
|
@@ -165,7 +165,7 @@ Once you have cloned and checked out the repository, you can install a new devel
|
|
|
165
165
|
|
|
166
166
|
python -m venv django-import-export-venv
|
|
167
167
|
source django-import-export-venv/bin/activate
|
|
168
|
-
pip install
|
|
168
|
+
pip install .[tests]
|
|
169
169
|
|
|
170
170
|
Run tests
|
|
171
171
|
^^^^^^^^^
|
|
@@ -227,7 +227,7 @@ confirmation.
|
|
|
227
227
|
|
|
228
228
|
To resolve this, you should avoid using temporary file system storage in multi server environments.
|
|
229
229
|
|
|
230
|
-
Refer to :ref:`
|
|
230
|
+
Refer to :ref:`import_confirmation` for more information.
|
|
231
231
|
|
|
232
232
|
How to export large datasets
|
|
233
233
|
----------------------------
|
|
@@ -51,7 +51,7 @@ Bulk testing
|
|
|
51
51
|
There is a helper script available to generate and profile bulk loads. See ``scripts/bulk_import.py``.
|
|
52
52
|
|
|
53
53
|
You can use this script by configuring environment variables as defined above, and then installing and running the test
|
|
54
|
-
application. In order to run the helper script, you will need to install ``requirements
|
|
54
|
+
application. In order to run the helper script, you will need to install ``make install-test-requirements``, and then add
|
|
55
55
|
`django-extensions` to `settings.py` (`INSTALLED_APPS`).
|
|
56
56
|
|
|
57
57
|
You can then run the script as follows:
|
|
@@ -88,11 +88,11 @@ class ResourceOptions:
|
|
|
88
88
|
clean_model_instances = False
|
|
89
89
|
"""
|
|
90
90
|
Controls whether
|
|
91
|
-
`full_clean <https://docs.djangoproject.com/en/stable/ref/models/instances/#django.db.models.Model.full_clean>`_
|
|
91
|
+
`full_clean <https://docs.djangoproject.com/en/stable/ref/models/instances/#django.db.models.Model.full_clean>`_
|
|
92
92
|
is called during the import
|
|
93
93
|
process to identify potential validation errors for each (non skipped) row.
|
|
94
94
|
The default value is ``False``.
|
|
95
|
-
"""
|
|
95
|
+
""" # noqa: E501
|
|
96
96
|
|
|
97
97
|
chunk_size = None
|
|
98
98
|
"""
|
|
@@ -780,7 +780,7 @@ class Resource(metaclass=DeclarativeMetaclass):
|
|
|
780
780
|
# There is no point logging a transaction error for each row
|
|
781
781
|
# when only the original error is likely to be relevant
|
|
782
782
|
if not isinstance(e, TransactionManagementError):
|
|
783
|
-
logger.debug(e, exc_info=
|
|
783
|
+
logger.debug(e, exc_info=True)
|
|
784
784
|
row_result.errors.append(
|
|
785
785
|
self.get_error_result_class()(e, row=row, number=kwargs["row_number"])
|
|
786
786
|
)
|
|
@@ -307,12 +307,16 @@ class DateTimeWidget(_ParseDateTimeMixin, Widget):
|
|
|
307
307
|
|
|
308
308
|
def render(self, value, obj=None, **kwargs):
|
|
309
309
|
self._obj_deprecation_warning(obj)
|
|
310
|
-
if self.coerce_to_string is False or kwargs.get("force_native_type"):
|
|
311
|
-
return value
|
|
312
310
|
if not value or not isinstance(value, datetime):
|
|
313
311
|
return ""
|
|
314
312
|
if settings.USE_TZ:
|
|
315
313
|
value = timezone.localtime(value)
|
|
314
|
+
|
|
315
|
+
force_native_type = kwargs.get("force_native_type")
|
|
316
|
+
if self.coerce_to_string is False or force_native_type:
|
|
317
|
+
# binary formats such as xlsx must not have tz set
|
|
318
|
+
return value.replace(tzinfo=None) if force_native_type else value
|
|
319
|
+
|
|
316
320
|
return format_datetime(value, self.formats[0])
|
|
317
321
|
|
|
318
322
|
|
|
@@ -51,6 +51,21 @@ pandas = ["tablib[pandas]"]
|
|
|
51
51
|
xls = ["tablib[xls]"]
|
|
52
52
|
xlsx = ["tablib[xlsx]"]
|
|
53
53
|
yaml = ["tablib[yaml]"]
|
|
54
|
+
docs = [
|
|
55
|
+
"sphinx==8.1.3",
|
|
56
|
+
"sphinx-rtd-theme==3.0.1"
|
|
57
|
+
]
|
|
58
|
+
tests = [
|
|
59
|
+
"psycopg2-binary==2.9.10",
|
|
60
|
+
"mysqlclient==2.2.5",
|
|
61
|
+
"chardet==5.2.0",
|
|
62
|
+
"pytz==2024.2",
|
|
63
|
+
"memory-profiler==0.61.0",
|
|
64
|
+
"django-extensions==3.2.3",
|
|
65
|
+
"coverage==7.6.4",
|
|
66
|
+
"tablib[all]>=3.7.0",
|
|
67
|
+
"setuptools-scm==8.1.0",
|
|
68
|
+
]
|
|
54
69
|
|
|
55
70
|
[project.urls]
|
|
56
71
|
Documentation = "https://django-import-export.readthedocs.io/en/stable/"
|
|
@@ -2,6 +2,7 @@ from datetime import date, datetime
|
|
|
2
2
|
from io import BytesIO
|
|
3
3
|
from unittest import mock
|
|
4
4
|
from unittest.mock import MagicMock, PropertyMock, patch
|
|
5
|
+
from zoneinfo import ZoneInfo
|
|
5
6
|
|
|
6
7
|
import chardet
|
|
7
8
|
import tablib
|
|
@@ -819,3 +820,101 @@ class ExportBinaryFieldsTest(AdminTestMixin, TestCase):
|
|
|
819
820
|
self.assertEqual(101, wb.active["A2"].value)
|
|
820
821
|
self.assertEqual(1, wb.active["B2"].value)
|
|
821
822
|
self.assertEqual(datetime(2000, 8, 2), wb.active["C2"].value)
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
@override_settings(USE_TZ=True, TIME_ZONE="UTC")
|
|
826
|
+
class ExportTzAwareDateTest(AdminTestMixin, TestCase):
|
|
827
|
+
# issue 1995
|
|
828
|
+
# test that tz aware dates do not crash on export
|
|
829
|
+
class BookResource_(resources.ModelResource):
|
|
830
|
+
|
|
831
|
+
class Meta:
|
|
832
|
+
model = Book
|
|
833
|
+
fields = ("id", "name", "added")
|
|
834
|
+
|
|
835
|
+
@patch("import_export.mixins.BaseExportMixin.choose_export_resource_class")
|
|
836
|
+
def test_datetime_export_xlsx(self, mock_choose_export_resource_class):
|
|
837
|
+
mock_choose_export_resource_class.return_value = self.BookResource_
|
|
838
|
+
date_added = datetime(2024, 11, 8, 14, 40, tzinfo=ZoneInfo("UTC"))
|
|
839
|
+
Book.objects.create(id=101, name="Moonraker", added=date_added)
|
|
840
|
+
|
|
841
|
+
data = {
|
|
842
|
+
"format": "2",
|
|
843
|
+
"bookresource_id": True,
|
|
844
|
+
"bookresource_title": True,
|
|
845
|
+
"bookresource_added": True,
|
|
846
|
+
}
|
|
847
|
+
response = self.client.post(self.book_export_url, data)
|
|
848
|
+
self.assertEqual(response.status_code, 200)
|
|
849
|
+
content = response.content
|
|
850
|
+
wb = load_workbook(filename=BytesIO(content))
|
|
851
|
+
self.assertEqual(date_added.replace(tzinfo=None), wb.active["B2"].value)
|
|
852
|
+
|
|
853
|
+
@override_settings(TIME_ZONE="Asia/Hong_Kong")
|
|
854
|
+
@patch("import_export.mixins.BaseExportMixin.choose_export_resource_class")
|
|
855
|
+
def test_datetime_export_xlsx_with_timezone(
|
|
856
|
+
self, mock_choose_export_resource_class
|
|
857
|
+
):
|
|
858
|
+
mock_choose_export_resource_class.return_value = self.BookResource_
|
|
859
|
+
date_added = datetime(2024, 11, 8, 14, 40, tzinfo=ZoneInfo("Asia/Hong_Kong"))
|
|
860
|
+
Book.objects.create(id=101, name="Moonraker", added=date_added)
|
|
861
|
+
|
|
862
|
+
data = {
|
|
863
|
+
"format": "2",
|
|
864
|
+
"bookresource_id": True,
|
|
865
|
+
"bookresource_title": True,
|
|
866
|
+
"bookresource_added": True,
|
|
867
|
+
}
|
|
868
|
+
response = self.client.post(self.book_export_url, data)
|
|
869
|
+
self.assertEqual(response.status_code, 200)
|
|
870
|
+
content = response.content
|
|
871
|
+
wb = load_workbook(filename=BytesIO(content))
|
|
872
|
+
self.assertEqual(date_added.replace(tzinfo=None), wb.active["B2"].value)
|
|
873
|
+
|
|
874
|
+
@patch("import_export.mixins.BaseExportMixin.choose_export_resource_class")
|
|
875
|
+
def test_datetime_export_xls(self, mock_choose_export_resource_class):
|
|
876
|
+
mock_choose_export_resource_class.return_value = self.BookResource_
|
|
877
|
+
date_added = datetime(2024, 11, 8, 14, 40, tzinfo=ZoneInfo("UTC"))
|
|
878
|
+
Book.objects.create(id=101, name="Moonraker", added=date_added)
|
|
879
|
+
|
|
880
|
+
data = {
|
|
881
|
+
"format": "1",
|
|
882
|
+
"bookresource_id": True,
|
|
883
|
+
"bookresource_title": True,
|
|
884
|
+
"bookresource_added": True,
|
|
885
|
+
}
|
|
886
|
+
response = self.client.post(self.book_export_url, data)
|
|
887
|
+
self.assertEqual(response.status_code, 200)
|
|
888
|
+
|
|
889
|
+
@patch("import_export.mixins.BaseExportMixin.choose_export_resource_class")
|
|
890
|
+
def test_datetime_export_ods(self, mock_choose_export_resource_class):
|
|
891
|
+
mock_choose_export_resource_class.return_value = self.BookResource_
|
|
892
|
+
date_added = datetime(2024, 11, 8, 14, 40, tzinfo=ZoneInfo("UTC"))
|
|
893
|
+
Book.objects.create(id=101, name="Moonraker", added=date_added)
|
|
894
|
+
|
|
895
|
+
data = {
|
|
896
|
+
"format": "4",
|
|
897
|
+
"bookresource_id": True,
|
|
898
|
+
"bookresource_title": True,
|
|
899
|
+
"bookresource_added": True,
|
|
900
|
+
}
|
|
901
|
+
response = self.client.post(self.book_export_url, data)
|
|
902
|
+
self.assertEqual(response.status_code, 200)
|
|
903
|
+
|
|
904
|
+
@patch("import_export.mixins.BaseExportMixin.choose_export_resource_class")
|
|
905
|
+
def test_datetime_export_empty_field(self, mock_choose_export_resource_class):
|
|
906
|
+
mock_choose_export_resource_class.return_value = self.BookResource_
|
|
907
|
+
date_added = None
|
|
908
|
+
Book.objects.create(id=101, name="Moonraker", added=date_added)
|
|
909
|
+
|
|
910
|
+
data = {
|
|
911
|
+
"format": "2",
|
|
912
|
+
"bookresource_id": True,
|
|
913
|
+
"bookresource_title": True,
|
|
914
|
+
"bookresource_added": True,
|
|
915
|
+
}
|
|
916
|
+
response = self.client.post(self.book_export_url, data)
|
|
917
|
+
self.assertEqual(response.status_code, 200)
|
|
918
|
+
content = response.content
|
|
919
|
+
wb = load_workbook(filename=BytesIO(content))
|
|
920
|
+
self.assertIsNone(wb.active["B2"].value)
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
version: '3.3'
|
|
2
1
|
services:
|
|
3
2
|
postgresdb:
|
|
4
3
|
container_name: importexport_pgdb
|
|
@@ -16,6 +15,11 @@ services:
|
|
|
16
15
|
volumes:
|
|
17
16
|
- ./docker/db/init-postgres-db.sh/:/docker-entrypoint-initdb.d/init-postgres-db.sh
|
|
18
17
|
- postgres-db-data:/var/lib/postgresql/data
|
|
18
|
+
healthcheck:
|
|
19
|
+
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'"]
|
|
20
|
+
interval: 10s
|
|
21
|
+
timeout: 3s
|
|
22
|
+
retries: 3
|
|
19
23
|
mysqldb:
|
|
20
24
|
container_name: importexport_mysqldb
|
|
21
25
|
image: mysql:8.0
|
|
@@ -34,6 +38,11 @@ services:
|
|
|
34
38
|
volumes:
|
|
35
39
|
- ./docker/db/init-mysql-db.sh:/docker-entrypoint-initdb.d/init-mysql-db.sh
|
|
36
40
|
- mysql-db-data:/var/lib/mysql
|
|
41
|
+
healthcheck:
|
|
42
|
+
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
|
|
43
|
+
interval: 10s
|
|
44
|
+
timeout: 3s
|
|
45
|
+
retries: 3
|
|
37
46
|
|
|
38
47
|
volumes:
|
|
39
48
|
postgres-db-data:
|
|
@@ -28,7 +28,7 @@ deps =
|
|
|
28
28
|
django50: Django>=5.0,<5.1
|
|
29
29
|
django51: Django>=5.1,<5.2
|
|
30
30
|
djangomain: https://github.com/django/django/archive/main.tar.gz
|
|
31
|
-
|
|
31
|
+
.[tests]
|
|
32
32
|
|
|
33
33
|
# if postgres / mysql environment variables exist, we can go ahead and run db specific tests
|
|
34
34
|
passenv =
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Read the Docs configuration file for Sphinx projects
|
|
2
|
-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
3
|
-
|
|
4
|
-
# Required
|
|
5
|
-
version: 2
|
|
6
|
-
|
|
7
|
-
build:
|
|
8
|
-
os: "ubuntu-22.04"
|
|
9
|
-
tools:
|
|
10
|
-
python: "3.11"
|
|
11
|
-
|
|
12
|
-
sphinx:
|
|
13
|
-
configuration: docs/conf.py
|
|
14
|
-
|
|
15
|
-
# Optional but recommended, declare the Python requirements required
|
|
16
|
-
# to build your documentation
|
|
17
|
-
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
|
|
18
|
-
python:
|
|
19
|
-
install:
|
|
20
|
-
- requirements: requirements/docs.txt
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
diff-match-patch==20241021
|
|
2
|
-
Django>=4.2
|
|
3
|
-
tablib==3.7.0
|
|
4
|
-
|
|
5
|
-
[all]
|
|
6
|
-
tablib[all]
|
|
7
|
-
|
|
8
|
-
[cli]
|
|
9
|
-
tablib[cli]
|
|
10
|
-
|
|
11
|
-
[ods]
|
|
12
|
-
tablib[ods]
|
|
13
|
-
|
|
14
|
-
[pandas]
|
|
15
|
-
tablib[pandas]
|
|
16
|
-
|
|
17
|
-
[xls]
|
|
18
|
-
tablib[xls]
|
|
19
|
-
|
|
20
|
-
[xlsx]
|
|
21
|
-
tablib[xlsx]
|
|
22
|
-
|
|
23
|
-
[yaml]
|
|
24
|
-
tablib[yaml]
|