From 98e8d006d73377d5160916ceaaea505e63073633 Mon Sep 17 00:00:00 2001 From: gabdevele Date: Thu, 18 Jun 2026 01:09:53 +0200 Subject: [PATCH] feat: specify JSON format for fixture loading in entrypoint script --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 23d21dc..cb5d998 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -41,9 +41,9 @@ with connection.cursor() as cursor: fi if [ "$should_load_fixture" = "1" ]; then - TMP_DUMP="$(mktemp)" + TMP_DUMP="$(mktemp /tmp/visione-fixture.XXXXXX.json)" python /app/scripts/rewrite_dumps.py "$DUMP_SRC" "$TMP_DUMP" - python manage.py loaddata "$TMP_DUMP" + python manage.py loaddata --format=json "$TMP_DUMP" rm -f "$TMP_DUMP" fi