summaryrefslogtreecommitdiff
path: root/django
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:10:42 -0400
commit796fde5b793b6a36b7fc5481994d37ef71da8f58 (patch)
treed8a37239a25817230c4b2f801f3de0b0bcd5c446 /django
parented77bea58274e11e5a9e4c8b9650f50deb8a2b26 (diff)
Fixed incorrect indentation in remove_stale_contenttypes.
It's unnecessary for content_type_display to be constructed from ct_info in every loop iteration.
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 55bd8d83bd..0a64a0ebe5 100644
--- a/django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py
+++ b/django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py
@@ -47,7 +47,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: