* Update French translation * Add flag to ignore empty rows in XLSX import * Add support for Django 5.2 * Fix Chinese translation * Clarify documentation on creating non-existent relations * Update Turkish translations * Handle QuerySets called with values() on export * Update all translations * Updated Farsi translation * Updated German translation * Fix imports for openpyxl * Addition of import & export management commands * Handle IllegalCharacterError in xlsx exports * Add __repr__ method to InvalidRow for improved debugging - Add patch override-x-csv.patch: * Hackily override CSV mimetype. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-import-export?expand=0&rev=14
14 lines
598 B
Diff
14 lines
598 B
Diff
Index: django_import_export-4.3.7/import_export/command_utils.py
|
|
===================================================================
|
|
--- django_import_export-4.3.7.orig/import_export/command_utils.py
|
|
+++ django_import_export-4.3.7/import_export/command_utils.py
|
|
@@ -59,6 +59,8 @@ def get_format_class(format_name, file_n
|
|
else:
|
|
# Determine MIME type from file name
|
|
mimetype, file_encoding = mimetypes.guess_type(file_name)
|
|
+ if mimetype == "text/x-comma-separated-values":
|
|
+ mimetype = "text/csv"
|
|
|
|
if not mimetype:
|
|
raise CommandError(
|