﻿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
33035	Autocomplete and populating Subcategories based on selected Categories (Admin and Forms)	Jon Levischi	nobody	"A combination of the recently implemented ""autocomplete_fields"" with dynamic ""limit_choices_to"" that actually works on Foreign AND ManyToMany fields both on Admin site and Custom Forms.

Sample case:


{{{
class Project
    categories = M2M [having ""Cat A"", ""Cat B"", ""Cat C"", etc.]
    subcategories = M2M [having ""Sub A1"", ""Sub A2"", ""Sub C1"", etc.]
}}}


When selecting ''Cat A'' in the **category** it would populate **subcategory** limited based on which categories are selected)
"	New feature	new	Forms	3.2	Normal		autocomplete_fields, limit_choices_to		Unreviewed	0	0	0	0	1	1
