diff options
| author | django-bot <ops@djangoproject.com> | 2025-07-22 20:41:41 -0700 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 20:17:55 -0300 |
| commit | 69a93a88edb56ba47f624dac7a21aacc47ea474f (patch) | |
| tree | f57507a4435d032493cae40e06ecb254790b67b2 /django/db/migrations/executor.py | |
| parent | 55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff) | |
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline
using script from https://github.com/medmunds/autofix-w505.
Diffstat (limited to 'django/db/migrations/executor.py')
| -rw-r--r-- | django/db/migrations/executor.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/django/db/migrations/executor.py b/django/db/migrations/executor.py index 61b2b54f6c..1ad7d0c18c 100644 --- a/django/db/migrations/executor.py +++ b/django/db/migrations/executor.py @@ -21,7 +21,8 @@ class MigrationExecutor: def migration_plan(self, targets, clean_start=False): """ - Given a set of targets, return a list of (Migration instance, backwards?). + Given a set of targets, return a list of (Migration instance, + backwards?). """ plan = [] if clean_start: @@ -29,7 +30,8 @@ class MigrationExecutor: else: applied = dict(self.loader.applied_migrations) for target in targets: - # If the target is (app_label, None), that means unmigrate everything + # If the target is (app_label, None), that means unmigrate + # everything if target[1] is None: for root in self.loader.graph.root_nodes(): if root[0] == target[0]: |
