Ticket #1396: relatedobject.patch
File relatedobject.patch, 744 bytes (added by , 19 years ago) |
---|
-
django/template/__init__.py
641 641 current = current[int(bits[0])] 642 642 except (IndexError, ValueError, KeyError): 643 643 raise VariableDoesNotExist, "Failed lookup for key [%s] in %r" % (bits[0], current) # missing attribute 644 except Exception, e: 645 if getattr(e, 'silent_variable_failure', False): 646 current = settings.TEMPLATE_STRING_IF_INVALID 647 else: 648 raise 644 649 del bits[0] 645 650 return current 646 651