Ticket #13167: 13167_iffix.diff
File 13167_iffix.diff, 595 bytes (added by , 15 years ago) |
---|
-
django/template/defaulttags.py
241 241 yield node 242 242 243 243 def render(self, context): 244 if self.var.eval(context): 244 try: 245 val = self.var.eval(context) 246 except VariableDoesNotExist: 247 val = None 248 249 if val: 245 250 return self.nodelist_true.render(context) 246 251 else: 247 252 return self.nodelist_false.render(context)