瀏覽代碼

Fixed incorrect indentation in remove_stale_contenttypes.

It's unnecessary for content_type_display to be constructed from
ct_info in every loop iteration.
Nick Pope 7 年之前
父節點
當前提交
796fde5b79
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py

+ 1 - 1
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: