Skip to content

Commit 796fde5

Browse files
ngnpopetimgraham
authored andcommitted
Fixed incorrect indentation in remove_stale_contenttypes.
It's unnecessary for content_type_display to be constructed from ct_info in every loop iteration.
1 parent ed77bea commit 796fde5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/contrib/contenttypes/management/commands/remove_stale_contenttypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def handle(self, **options):
4747
len(objs),
4848
obj_type._meta.label,
4949
))
50-
content_type_display = '\n'.join(ct_info)
50+
content_type_display = '\n'.join(ct_info)
5151
self.stdout.write("""Some content types in your database are stale and can be deleted.
5252
Any objects that depend on these content types will also be deleted.
5353
The content types and dependent objects that would be deleted are:

0 commit comments

Comments
 (0)