mirror of
https://github.com/django/django.git
synced 2025-08-01 09:32:50 +00:00
Fixed #4202 -- Corrected namespacing of exception in one of the examples.
Thanks, luftyluft@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5161 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
00d2fb7e70
commit
ce0084fbfc
1 changed files with 1 additions and 1 deletions
|
@ -866,7 +866,7 @@ current context, available in the ``render`` method::
|
|||
try:
|
||||
actual_date = resolve_variable(self.date_to_be_formatted, context)
|
||||
return actual_date.strftime(self.format_string)
|
||||
except VariableDoesNotExist:
|
||||
except template.VariableDoesNotExist:
|
||||
return ''
|
||||
|
||||
``resolve_variable`` will try to resolve ``blog_entry.date_updated`` and then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue