소스 검색

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

Tim Graham 9 년 전
부모
커밋
45ed19de68
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 1
      django/core/management/commands/makemigrations.py
  2. 2 1
      django/core/management/commands/migrate.py

+ 2 - 1
django/core/management/commands/makemigrations.py

@@ -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
             )
 

+ 2 - 1
django/core/management/commands/migrate.py

@@ -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
             )