Opened 4 years ago
Last modified 4 years ago
#33035 closed New feature
Autocomplete and populating Subcategories based on selected Categories (Admin and Forms) — at Initial Version
| Reported by: | Jon Levischi | Owned by: | nobody |
|---|---|---|---|
| Component: | Forms | Version: | 3.2 |
| Severity: | Normal | Keywords: | autocomplete_fields, limit_choices_to |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | yes |
Description
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)
Note:
See TracTickets
for help on using tickets.