summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2017-08-22 14:10:42 +0100
committerTim Graham <timograham@gmail.com>2017-08-22 09:11:26 -0400
commitd72f953e5a785feef67eef1b1434fbbe392ccb13 (patch)
tree8494d576d55f8926a0ef48744f3bfbab60c5396e
parentdd82f1df556561233eab6a4a2032c2bb306dec87 (diff)
[1.11.x] Fixed incorrect indentation in remove_stale_contenttypes.
It's unnecessary for content_type_display to be constructed from ct_info in every loop iteration. Backport of 796fde5b793b6a36b7fc5481994d37ef71da8f58 from master
-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 2a3b23b0d0..e1e00bb2e2 100644
--- a/django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py
+++ b/django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py
@@ -52,7 +52,7 @@ class Command(BaseCommand):
len(objs),
obj_type._meta.label,
))
- content_type_display = '\n'.join(ct_info)
+ content_type_display = '\n'.join(ct_info)
self.stdout.write("""Some content types in your database are stale and can be deleted.
Any objects that depend on these content types will also be deleted.
The content types and dependent objects that would be deleted are: