Django

Code

Changeset 3898

Show
Ignore:
Timestamp:
10/09/06 18:24:48 (2 years ago)
Author:
jacob
Message:

Made the NoReverseMatch exception fail silently within templates (so that model.permalink doesn't cause templates to break for a broken permalink function).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/urlresolvers.py

    r3554 r3898  
    1616 
    1717class NoReverseMatch(Exception): 
    18     pass 
     18    # Don't make this raise an error when used in a template. 
     19    silent_variable_failure = True   
    1920 
    2021def get_mod_func(callback):