﻿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
36423	Admin form submission via enter will incorrectly select all items from a ToManyField that uses a horizontal display instead of saving the form	Blayze	Blayze	"In Django 5.2, when submitting a form by using the enter button while a input field is active, all items from a many to many list will be selected instead of saving the form. The field must be using the horizontal display via the filter_horizontal for this to happen. If the many to many field is not on the page it will save as expected.

This seems to be happening because the ""Choose all X"" button does not specify type=""button"" so it defaults to submit instead.

I believe this is a regression from ticket #34619 where four links were changed to buttons without specifying the type.

Commit: [https://github.com/django/django/commit/857b1048d53ebf5fc5581c110e85c212b81ca83a#diff-3c2966b7041905eb8758311f5fedee0454575617ae55cfc7d0e3cc9d03c6671eR70]

When I changed the type on all of those buttons to type=""button"" the page worked as expected.
"	Bug	closed	contrib.admin	5.2	Release blocker	fixed		Blayze	Ready for checkin	1	0	0	0	0	1
