summaryrefslogtreecommitdiff
path: root/django/contrib/staticfiles/management/commands/collectstatic.py
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2013-06-07 11:15:34 +0100
committerAndrew Godwin <andrew@aeracode.org>2013-06-07 11:15:34 +0100
commit3c296382b8dea5de7f4e1e11b66bd7cecaf2ee51 (patch)
tree0ca12593be82971691ffca01a836d00d3fcb3bd4 /django/contrib/staticfiles/management/commands/collectstatic.py
parent7609e0b42e0014a6ad0adf9dafc7018cb268070e (diff)
parent357d62d9f2972bf1bc21e5835c12c849143e06af (diff)
Merge remote-tracking branch 'core/master' into schema-alteration
Conflicts: django/db/models/fields/related.py
Diffstat (limited to 'django/contrib/staticfiles/management/commands/collectstatic.py')
-rw-r--r--django/contrib/staticfiles/management/commands/collectstatic.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/django/contrib/staticfiles/management/commands/collectstatic.py b/django/contrib/staticfiles/management/commands/collectstatic.py
index c620993f33..7c3de80e93 100644
--- a/django/contrib/staticfiles/management/commands/collectstatic.py
+++ b/django/contrib/staticfiles/management/commands/collectstatic.py
@@ -175,11 +175,9 @@ Type 'yes' to continue, or 'no' to cancel: """
summary = template % {
'modified_count': modified_count,
'identifier': 'static file' + ('' if modified_count == 1 else 's'),
- 'action': self.symlink and 'symlinked' or 'copied',
- 'destination': (destination_path and " to '%s'"
- % destination_path or ''),
- 'unmodified': (collected['unmodified'] and ', %s unmodified'
- % unmodified_count or ''),
+ 'action': 'symlinked' if self.symlink else 'copied',
+ 'destination': (" to '%s'" % destination_path if destination_path else ''),
+ 'unmodified': (', %s unmodified' % unmodified_count if collected['unmodified'] else ''),
'post_processed': (collected['post_processed'] and
', %s post-processed'
% post_processed_count or ''),