Ticket #9666: patche.txt

File patche.txt, 527 bytes (added by Andrews Medina, 15 years ago)
Line 
1Index: 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]"
Back to Top