Browse Source

Fixed #28603 -- Clarified comment in collectstatic's collect().

Ed Morley 7 năm trước cách đây
mục cha
commit
2d4ccac275

+ 1 - 2
django/contrib/staticfiles/management/commands/collectstatic.py

@@ -121,8 +121,7 @@ class Command(BaseCommand):
                         level=1,
                     )
 
-        # Here we check if the storage backend has a post_process
-        # method and pass it the list of modified files.
+        # Storage backends may define a post_process() method.
         if self.post_process and hasattr(self.storage, 'post_process'):
             processor = self.storage.post_process(found_files,
                                                   dry_run=self.dry_run)