django1/django/db/migrations
Mariusz Felisiak d55a1e5809 [4.0.x] Refs #33476 -- Refactored problematic code before reformatting by Black.
In these cases Black produces unexpected results, e.g.

def make_random_password(
    self,
    length=10,
    allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789',
):

or

cursor.execute("""
SELECT ...
""",
    [table name],
)

Backport of c5cd878382 from main.
2022-02-03 11:38:46 +01:00
..
operations Refs #29898 -- Moved state_forwards()'s logic from migration operations to ProjectState. 2021-06-29 12:03:30 +02:00
__init__.py Implement swappable model support for migrations 2014-01-19 16:43:12 +00:00
autodetector.py [4.0.x] Fixed #33480 -- Fixed makemigrations crash when renaming field of renamed model. 2022-02-01 07:33:22 +01:00
exceptions.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
executor.py Fixed #24900 -- Allowed migrating backward to squashed migrations. 2021-08-30 12:08:04 +02:00
graph.py Refs #32956 -- Changed "afterwards" to "afterward" in docs and comments. 2021-07-27 10:41:51 +02:00
loader.py Refs #29898 -- Changed ProjectState.real_apps to set. 2021-08-11 09:01:14 +02:00
migration.py Fixed #31516 -- Improved naming of migrations with multiple operations. 2021-03-12 11:56:12 +01:00
optimizer.py Refs #22608 -- Made app_label required when optimizing migrations. 2020-04-09 10:08:02 +02:00
questioner.py [4.0.x] Refs #32900 -- Restored '[y/N]' in questioner prompt when merging migrations. 2021-10-11 09:40:06 +02:00
recorder.py Fixed #31233 -- Closed database connections and cursors after use. 2020-02-06 15:35:23 +01:00
serializer.py Fixed #32365 -- Made zoneinfo the default timezone implementation. 2021-09-16 12:11:05 +02:00
state.py [4.0.x] Fixed #33449 -- Fixed makemigrations crash on models without Meta.order_with_respect_to but with _order field. 2022-01-21 08:46:14 +01:00
utils.py [4.0.x] Refs #33476 -- Refactored problematic code before reformatting by Black. 2022-02-03 11:38:46 +01:00
writer.py Fixed #30147 -- Simplified directory creation with os.makedirs(..., exist_ok=True). 2019-01-31 12:53:36 -05:00