Migrations

The django-logikal application provides an improved migration file writer.

class django_logikal.migrations.FormattedMigrationWriter(migration, include_header=True)

Write nicely formatted migration files.

Uses Black and isort with settings compatible with pytest-logikal.

Note

Requires pytest-logikal to be installed.

as_string() str

Return a string of the nicely formatted file contents.