summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2022-10-18 10:30:35 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-10-20 14:38:40 -0700
commit84814412a032742e5ccef576b24dbaa0ef25fe06 (patch)
tree14fa14a48a6f59b7dd690d2645fb2d521c3259a0 /django
parent202f5ae96a9ac2e44fac9aee0dd5ed044d323abb (diff)
[4.1.x] Fixed #34085 -- Made management commands don't use black for non-Python files.
Bug in d113b5a837f726d1c638d76c4e88445e6cd59fd5. Co-authored-by: programmylife <acmshar@gmail.com> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Backport of 5c2c7277d4554db34c585477b269bb1acfcbbe56 from main.
Diffstat (limited to 'django')
-rw-r--r--django/core/management/templates.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/core/management/templates.py b/django/core/management/templates.py
index e06e6a6307..433150e449 100644
--- a/django/core/management/templates.py
+++ b/django/core/management/templates.py
@@ -80,7 +80,6 @@ class TemplateCommand(BaseCommand):
)
def handle(self, app_or_project, name, target=None, **options):
- self.written_files = []
self.app_or_project = app_or_project
self.a_or_an = "an" if app_or_project == "app" else "a"
self.paths_to_remove = []
@@ -201,7 +200,6 @@ class TemplateCommand(BaseCommand):
else:
shutil.copyfile(old_path, new_path)
- self.written_files.append(new_path)
if self.verbosity >= 2:
self.stdout.write("Creating %s" % new_path)
try:
@@ -224,7 +222,7 @@ class TemplateCommand(BaseCommand):
else:
shutil.rmtree(path_to_remove)
- run_formatters(self.written_files)
+ run_formatters([top_dir])
def handle_template(self, template, subdir):
"""