﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33317	Add note about not overriding parent blocks within conditionals	Nat S Dunn	Victor	"When a parent block is overridden in an if condition, the overridden content is output regardless of the truthiness of the condition.  For example:

{{{
{% if False %}
  {% block parent %}Foo{% endblock parent %}
{% endif %}
}}}

Foo gets output, which feels wrong. But according to Mariusz Felisiak's response at https://code.djangoproject.com/ticket/33311, this is by design. 

It would be great if this could be added to the documentation on [https://docs.djangoproject.com/en/4.0/ref/templates/language/#template-inheritance Template Inheritance]."	Cleanup/optimization	closed	Documentation	3.2	Normal	fixed	block,if,Template inheritance		Accepted	1	0	0	0	1	0
