﻿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
28192	Prevent passing positional arguments to form fields	Claude Paroz	nobody	"The documentation already indicates `(**kwargs)` for most of form field signatures. But in practice, this isn't enforced and any positional `*args` are passed to the `__init__` methods.

I encountered a strange error with some code of mine which was due to some label passed erroneously as positional parameter:
`distance = DecimalField(""SomeLabel"", max_digits=6, decimal_places=2)` (""SomeLabel"" was passed as max_value, which only crashed when validating the form with a strange comparison error).

I think that preventing positional parameters (with a lonely `*`) should avoid this sort of unexpected errors. This might however be backwards incompatible for previously well-functioning code."	Cleanup/optimization	closed	Forms	dev	Normal	fixed			Accepted	1	0	0	0	0	0
