Skip to content

Commit

Permalink
Permettre l'import et export en excel (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolok authored Sep 17, 2024
1 parent c37aa85 commit def05e7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
2 changes: 2 additions & 0 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import decouple
import dj_database_url
import sentry_sdk
from import_export.formats.base_formats import CSV, XLS, XLSX
from sentry_sdk.integrations.django import DjangoIntegration

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand Down Expand Up @@ -316,3 +317,4 @@
)

IMPORT_EXPORT_TMP_STORAGE_CLASS = "import_export.tmp_storages.MediaStorage"
IMPORT_FORMATS = [CSV, XLSX, XLS]
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ boto3
dj-database-url
dj-static
Django
django-import-export
django-import-export[xls, xlsx]
django-ninja
django-sql-explorer
django-storages
Expand Down
24 changes: 19 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ django-cors-headers==4.4.0 \
--hash=sha256:5c6e3b7fe870876a1efdfeb4f433782c3524078fa0dc9e0195f6706ce7a242f6 \
--hash=sha256:92cf4633e22af67a230a1456cb1b7a02bb213d6536d2dcb2a4a24092ea9cebc2
# via -r requirements.in
django-import-export==4.1.1 \
django-import-export[xls,xlsx]==4.1.1 \
--hash=sha256:16ecc5a9f0df46bde6eb278a3e65ebda0ee1db55656f36440e9fb83f40ab85a3 \
--hash=sha256:730ae2443a02b1ba27d8dba078a27ae9123adfcabb78161b4f130843607b3df9
# via -r requirements.in
Expand All @@ -156,6 +156,10 @@ django-storages==1.14.2 \
--hash=sha256:1db759346b52ada6c2efd9f23d8241ecf518813eb31db9e2589207174f58f6ad \
--hash=sha256:51b36af28cc5813b98d5f3dfe7459af638d84428c8df4a03990c7d74d1bea4e5
# via -r requirements.in
et-xmlfile==1.1.0 \
--hash=sha256:8eb9e2bc2f8c97e37a2dc85a09ecdcdec9d8a396530a6d5a33b30b9a92da0c5c \
--hash=sha256:a2ba85d1d6a74ef63837eed693bcb89c3f752169b0e3e7ae5b16ca5e1b3deada
# via openpyxl
gunicorn==21.2.0 \
--hash=sha256:3213aa5e8c24949e792bcacfc176fef362e7aac80b76c56f6b5122bf350722f0 \
--hash=sha256:88ec8bff1d634f98e61b9f65bc4bf3cd918a90806c6f5c48bc5603849ec81033
Expand Down Expand Up @@ -365,6 +369,10 @@ opening-hours-py==0.6.18 \
--hash=sha256:f7af6db01ade0fed4752fc90f8304477816eece501640ed978ee5777aae5732b \
--hash=sha256:fe777befa47e2b30293cf1f3cba855f8a7f4911761000f73db52dd08c82fd30c
# via -r requirements.in
openpyxl==3.1.5 \
--hash=sha256:5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2 \
--hash=sha256:cf0e3cf56142039133628b5acffe8ef0c12bc902d2aadd3e0fe5878dc08d1050
# via tablib
orjson==3.9.10 \
--hash=sha256:06ad5543217e0e46fd7ab7ea45d506c76f878b87b1b4e369006bdb01acc05a83 \
--hash=sha256:0a73160e823151f33cdc05fe2cea557c5ef12fdf276ce29bb4f1c571c8368a60 \
Expand Down Expand Up @@ -666,12 +674,10 @@ sqlparse==0.4.4 \
static3==0.7.0 \
--hash=sha256:674641c64bc75507af2eb20bef7e7e3593dca993dec6674be108fa15b42f47c8
# via dj-static
tablib==3.5.0 \
tablib[xls,xlsx]==3.5.0 \
--hash=sha256:9821caa9eca6062ff7299fa645e737aecff982e6b2b42046928a6413c8dabfd9 \
--hash=sha256:f6661dfc45e1d4f51fa8a6239f9c8349380859a5bfaa73280645f046d6c96e33
# via
# django-import-export
# tablib
# via django-import-export
tqdm==4.66.1 \
--hash=sha256:d302b3c5b53d47bce91fea46679d9c3c6508cf6332229aa1e7d8653723793386 \
--hash=sha256:d88e651f9db8d8551a62556d3cff9e3034274ca5d66e93197cf2490e2dcb69c7
Expand Down Expand Up @@ -706,3 +712,11 @@ whitenoise==6.6.0 \
--hash=sha256:8998f7370973447fac1e8ef6e8ded2c5209a7b1f67c1012866dbcd09681c3251 \
--hash=sha256:b1f9db9bf67dc183484d760b99f4080185633136a273a03f6436034a41064146
# via -r requirements.in
xlrd==2.0.1 \
--hash=sha256:6a33ee89877bd9abc1158129f6e94be74e2679636b8a205b43b85206c3f0bbdd \
--hash=sha256:f72f148f54442c6b056bf931dbc34f986fd0c3b0b6b5a58d013c9aef274d0c88
# via tablib
xlwt==1.3.0 \
--hash=sha256:a082260524678ba48a297d922cc385f58278b8aa68741596a87de01a9c628b2e \
--hash=sha256:c59912717a9b28f1a3c2a98fd60741014b06b043936dcecbc113eaaada156c88
# via tablib

0 comments on commit def05e7

Please sign in to comment.