summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/template/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/django/template/__init__.py b/django/template/__init__.py
index e60ff64ebf..5c4ab3052a 100644
--- a/django/template/__init__.py
+++ b/django/template/__init__.py
@@ -467,7 +467,7 @@ class FilterExpression(object):
>>> len(fe.filters)
2
>>> fe.var
- 'variable'
+ <Variable: 'variable'>
This class should never be instantiated outside of the
get_filters_from_token helper function.
@@ -598,15 +598,15 @@ class Variable(object):
a hard-coded string (if it begins and ends with single or double quote
marks)::
- >>> c = {'article': {'section':'News'}}
+ >>> c = {'article': {'section':u'News'}}
>>> Variable('article.section').resolve(c)
u'News'
>>> Variable('article').resolve(c)
- {'section': 'News'}
+ {'section': u'News'}
>>> class AClass: pass
>>> c = AClass()
>>> c.article = AClass()
- >>> c.article.section = 'News'
+ >>> c.article.section = u'News'
>>> Variable('article.section').resolve(c)
u'News'