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: http://code.djangoproject.com/svn/django/trunk@3898 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
afd9b87711
commit
aaa3411a0a
|
@ -15,7 +15,8 @@ class Resolver404(Http404):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class NoReverseMatch(Exception):
|
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):
|
def get_mod_func(callback):
|
||||||
# Converts 'django.views.news.stories.story_detail' to
|
# Converts 'django.views.news.stories.story_detail' to
|
||||||
|
|
Loading…
Reference in New Issue