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:
|
try:
|
||||||
actual_date = resolve_variable(self.date_to_be_formatted, context)
|
actual_date = resolve_variable(self.date_to_be_formatted, context)
|
||||||
return actual_date.strftime(self.format_string)
|
return actual_date.strftime(self.format_string)
|
||||||
except VariableDoesNotExist:
|
except template.VariableDoesNotExist:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
``resolve_variable`` will try to resolve ``blog_entry.date_updated`` and then
|
``resolve_variable`` will try to resolve ``blog_entry.date_updated`` and then
|
||||||
|
|
Loading…
Reference in New Issue