feat: specify JSON format for fixture loading in entrypoint script
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user