summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-07-10 05:23:43 -0700
committerTim Graham <timograham@gmail.com>2018-07-10 10:14:34 -0400
commit08ebed5e7975b2b735ab8ec0384ccb8e31b76056 (patch)
treed9809cfa6779e3d6db89aae884ddb584a9bf6422 /django
parent178624855a3a0f9b4a79a1e33a9d298df179c71e (diff)
Fixed #29556 -- Made 'remove_stale_contenttypes --noinput' delete content types.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py b/django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py
index 9cc559dc1d..4d282d524e 100644
--- a/django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py
+++ b/django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py
@@ -60,7 +60,7 @@ Are you sure you want to delete these content types?
If you're unsure, answer 'no'.\n""" % content_type_display)
ok_to_delete = input("Type 'yes' to continue, or 'no' to cancel: ")
else:
- ok_to_delete = False
+ ok_to_delete = 'yes'
if ok_to_delete == 'yes':
for ct in to_remove: