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

Option for removing already selected values in ChainedForeignKey field #344

Open bsledev opened 2 years ago

bsledev commented 2 years ago

I would like to have an option for filtering out allready selected values for avoiding duplicate entries. For example in the test_app you can add a continent with multiple locations (inline) with the first select for country.

Actual behavior

It is possible to add an endless amount of entries with the same country.

Expected behavior

The possibility to only allow the selection of one country once in one continent item.