﻿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
35716	Undefined template variables on Admin's add page templates when using fieldsets	Fábio Domingues	Sarah Boyce	"Applications that does not forgive undefined variables on templates, for example using this:
{{{
# Raise an exception when accessing an undefined variable in templates
class InvalidString(str):
    def __mod__(self, other):
        from django.template.base import TemplateSyntaxError

        raise TemplateSyntaxError(f""Undefined variable or unknown value for: {other}"")
}}}
raises an error ""Undefined variable or unknown value for: fieldset.formset.prefix"" on line 1 of django/contrib/admin/templates/admin/includes/fieldset.html

My sugestion is to use firstof tags instead of the with tag."	Cleanup/optimization	closed	contrib.admin	5.1	Release blocker	fixed		Adam Johnson	Ready for checkin	1	0	0	0	0	0
