Skip to content

Commit

Permalink
format the json nicely when dumping fixtures (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinisaos committed Jun 20, 2023
1 parent 74ea10d commit 29f4c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piccolo/apps/fixtures/commands/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def dump_to_json_string(
pydantic_model = create_pydantic_fixture_model(
fixture_configs=fixture_configs
)
return pydantic_model(**dump).json()
return pydantic_model(**dump).json(indent=4)


def parse_args(apps: str, tables: str) -> t.List[FixtureConfig]:
Expand Down

0 comments on commit 29f4c2f

Please sign in to comment.