Changes between Version 1 and Version 2 of Ticket #33035


Ignore:
Timestamp:
Aug 18, 2021, 4:07:06 PM (3 years ago)
Author:
Jon Levischi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33035 – Description

    v1 v2  
    11A 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 
    52
    63{{{
     
    107}}}
    118
    12 
    139When 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).
    1410
    1511I 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
     13Thank you!
Back to Top