Russell's comments were helpful in discovering the edge case. _set_content behaves differently for baked and non-baked responses:
response = render(request, Template('foo')) response.content = 'bar' print response.content # 'foo' response.content = 'baz' print response.content # 'baz' This is confusing so I think responses should be marked as baked in _set_content, not in force_bake. The patch that should resolve this concern and Russell's concerns regarding the tests: http://bitbucket.org/kmike/django/changeset/00f8be464749 I'll take a look at docs and generic views integration later. Should new generic views return TemplateResponse by default? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.