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
|
@ -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…
Reference in New Issue