diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index 2495d38642..eef52e74ba 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -276,7 +276,10 @@ class ManagementUtility(object): if option[1]: opt_label += '=' print(opt_label) - sys.exit(1) + # Exit code of the bash completion function is never passed back to + # the user, so it's safe to always exit with 0. + # For more details see #25420. + sys.exit(0) def execute(self): """