Fixed #25047 -- Improved "Conflicting migrations" error message.

This commit is contained in:
Tim Graham 2015-08-20 18:56:57 -04:00
parent 491d01b7e9
commit 45ed19de68
2 changed files with 4 additions and 2 deletions

View File

@ -80,7 +80,8 @@ class Command(BaseCommand):
for app, names in conflicts.items()
)
raise CommandError(
"Conflicting migrations detected (%s).\nTo fix them run "
"Conflicting migrations detected; multiple leaf nodes in the "
"migration graph: (%s).\nTo fix them run "
"'python manage.py makemigrations --merge'" % name_str
)

View File

@ -94,7 +94,8 @@ class Command(BaseCommand):
for app, names in conflicts.items()
)
raise CommandError(
"Conflicting migrations detected (%s).\nTo fix them run "
"Conflicting migrations detected; multiple leaf nodes in the "
"migration graph: (%s).\nTo fix them run "
"'python manage.py makemigrations --merge'" % name_str
)