diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2011-02-04 17:10:21 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-02-04 17:10:21 +0000 |
| commit | d8c38bd2c988a08cbb89af09f7eff2c0fade99d9 (patch) | |
| tree | 8774feba416c2a55c52bd16a785461deb32c0c84 /django | |
| parent | 1a2f9ff9f90fef1ddaff76e1bb5e27e673ccbcc4 (diff) | |
Fixed #14046 -- Made {% include %} behave the same, regardless of whether the template included is named by variable or constant string. Thanks to defcube for the report, and George Karpenkov for the draft patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15413 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -rw-r--r-- | django/template/loader_tags.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/django/template/loader_tags.py b/django/template/loader_tags.py index 55b3ede02a..70096aafee 100644 --- a/django/template/loader_tags.py +++ b/django/template/loader_tags.py @@ -168,12 +168,10 @@ class IncludeNode(BaseIncludeNode): template_name = self.template_name.resolve(context) template = get_template(template_name) return self.render_template(template, context) - except TemplateSyntaxError: + except: if settings.TEMPLATE_DEBUG: raise return '' - except: - return '' # Fail silently for invalid included templates. def do_block(parser, token): """ |
