1๐
โ
I think the easier way is just to roll your own. Youโll just need:
- A
ChoiceField
. Usingcoerce
will let you transform IDs into objects transparently - A view that you AJAX component can query to retrieve the list of valid
Piece
s for a givenModule
. - A server-side validation method that checks that the
Module
and thePiece
correspond
๐คThomas Orozco
Source:stackexchange.com