Changes between Version 1 and Version 2 of Ticket #33035
- Timestamp:
- Aug 18, 2021, 4:07:06 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33035 – Description
v1 v2 1 1 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. 2 3 Sample case:4 5 2 6 3 {{{ … … 10 7 }}} 11 8 12 13 9 When selecting ''Cat A'' in the **category** it would populate **subcategory** limiting options to "Sub A1", "Sub A2", "Sub C1", "Sub C2", based on their parents, but not "Cat B" nor "Cat D" children). 14 10 15 11 I know this is possible using Ajax, django-autocomplete-light or similar, but it's so frequently used that I think it makes sense to be included in Django itself. 12 13 Thank you!