jazzband / django-smart-selects

chained and grouped selects for django forms
https://django-smart-selects.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.1k stars 348 forks source link

Chainfield as FilteredSelectMultiple #337

Open alex20465 opened 2 years ago

alex20465 commented 2 years ago

This PR contains modifications to properly handle ModelMultipleChoiceField base on FilteredSelectMultiple widget as chainfield.

It contains also test examples with a book-store, please take a look.

Here is a screenshot example:

Stations is the chainfield, station-variants and station-routes are based on stations which is a ModelMultipleChoiceField with the FilteredSelectMultiple widget

image