Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made the !NoReverseMatch exception fail silently within templates (so…

… that model.permalink doesn't cause templates to break for a broken permalink function).

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit aaa3411a0ab940c46a9e19e6eea5907dc86557fa 1 parent afd9b87
@jacobian jacobian authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/core/
3  django/core/
@@ -15,7 +15,8 @@ class Resolver404(Http404):
class NoReverseMatch(Exception):
- pass
+ # Don't make this raise an error when used in a template.
+ silent_variable_failure = True
def get_mod_func(callback):
# Converts '' to
Please sign in to comment.
Something went wrong with that request. Please try again.