﻿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
36998	firstof tag doesn't require an argument when used with as var	Lily	Shubh Rai	"The `{% firstof %}` template tag raises a `TemplateSyntaxError(""'firstof' statement requires at least one argument"")` when called with no arguments.

However, when called with exactly two arguments that match the variable capturing syntax (e.g. `{% firstof as foo %}`) no error is raised and the `FirstOfNode` is returned with an empty `vars` list (and an `asvar` of e.g. `foo`). It would be consistent to raise a `TemplateSyntaxError(""'firstof' statement requires at least one argument before 'as'"")` here.

This was discovered when [https://github.com/LilyFirefly/django-rusty-templates/pull/366/changes#r2971319569 re-implementing `firstof` in django-rusty-templates]."	Bug	assigned	Template system	6.0	Normal			Pravin Shubh Rai	Accepted	1	0	0	1	1	0
