1
0
mirror of https://github.com/django/django.git synced 2025-03-15 20:00:46 +00:00

[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
This commit is contained in:
Nick Pope 2017-08-22 14:10:42 +01:00 committed by Tim Graham
parent dd82f1df55
commit d72f953e5a

View File

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