diff --git a/django/core/management/commands/makemigrations.py b/django/core/management/commands/makemigrations.py
index db011f9..5eaed01 100644
a
|
b
|
def write_migration_files(self, changes):
|
172 | 172 | # Describe the migration |
173 | 173 | writer = MigrationWriter(migration) |
174 | 174 | if self.verbosity >= 1: |
175 | | self.stdout.write(" %s:\n" % (self.style.MIGRATE_LABEL(writer.filename),)) |
| 175 | # Write out the relative path if it's a sensible one, absolute otherwise |
| 176 | migration_string = os.path.relpath(writer.path) |
| 177 | if migration_string.startswith('..'): |
| 178 | migration_string = writer.path |
| 179 | self.stdout.write(" %s:\n" % (self.style.MIGRATE_LABEL(migration_string),)) |
176 | 180 | for operation in migration.operations: |
177 | 181 | self.stdout.write(" - %s\n" % operation.describe()) |
178 | 182 | if not self.dry_run: |