feat: specify JSON format for fixture loading in entrypoint script

This commit is contained in:
gabdevele
2026-06-18 01:09:53 +02:00 Unverified
parent 929f829d37
commit 98e8d006d7
+2 -2
View File
@@ -41,9 +41,9 @@ with connection.cursor() as cursor:
fi fi
if [ "$should_load_fixture" = "1" ]; then 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 /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" rm -f "$TMP_DUMP"
fi fi