Ticket #9666: patche.txt
File patche.txt, 527 bytes (added by , 16 years ago) |
---|
Line | |
---|---|
1 | Index: defaulttags.py |
2 | =================================================================== |
3 | --- defaulttags.py (revision 9524) |
4 | +++ defaulttags.py (working copy) |
5 | @@ -289,6 +289,10 @@ |
6 | self.filepath, self.parsed = filepath, parsed |
7 | |
8 | def render(self, context): |
9 | + |
10 | + if context.has_key(self.filepath): |
11 | + self.filepath = context[self.filepath] |
12 | + |
13 | if not include_is_allowed(self.filepath): |
14 | if settings.DEBUG: |
15 | return "[Didn't have permission to include file]" |