Ticket #17806: ticket17806_fix.diff
File ticket17806_fix.diff, 637 bytes (added by , 13 years ago) |
---|
-
django/contrib/staticfiles/storage.py
diff --git a/django/contrib/staticfiles/storage.py b/django/contrib/staticfiles/storage.py index ac83f52..fe35a31 100644
a b class CachedFilesMixin(object): 160 160 if sub_level: 161 161 if sub_level == 1: 162 162 parent_level -= 1 163 start, end = parent_level, sub_level -1163 start, end = parent_level, 1 164 164 else: 165 165 start, end = 1, sub_level - 1 166 166 joined_result = '/'.join(name_parts[:-start] + url_parts[end:])