1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #17529 -- get_template_from_string default arguments break

``get_template_from_string`` default arguments were breaking
``assertTemplateUsed``. The solution has been to return only the names of the
templates with a ``name`` attribute distinct of ``None``. The default ``name``
kwarg of ``Template`` has been changed to ``None``, more pythonic than ``'<Unknown
Template>'``.
This commit is contained in:
Unai Zalakain
2013-11-04 16:50:14 +01:00
committed by Claude Paroz
parent bc21e9c0d9
commit 72f63bd24d
5 changed files with 16 additions and 3 deletions

View File

@@ -5,4 +5,5 @@ from . import views
urlpatterns = patterns('',
(r'^test_utils/get_person/(\d+)/$', views.get_person),
(r'^test_utils/no_template_used/$', views.no_template_used),
)