diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/management/templates.py | 4 |
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): """ |
