Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 Backport of 097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 from main
20 lines
441 B
Python
20 lines
441 B
Python
from django.db import migrations
|
|
|
|
|
|
def add_book(apps, schema_editor):
|
|
apps.get_model("migration_test_data_persistence", "Book").objects.using(
|
|
schema_editor.connection.alias,
|
|
).create(
|
|
title="I Love Django",
|
|
)
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [("migration_test_data_persistence", "0001_initial")]
|
|
|
|
operations = [
|
|
migrations.RunPython(
|
|
add_book,
|
|
),
|
|
]
|