Skip to content

How to deselect all entries in a 2many relationship #551

Answered by aminalaee
hochstibe asked this question in Q&A
Discussion options

You must be logged in to vote

I think a minimal example would be nice, but for M2M we just have HTML so using CTRL + click you can select or deselect as you want. But for the One-To-Many, I think it should be nullable and what happens is we create this select: A A

So any empty one is added automatically so you can select that to deselect.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hochstibe
Comment options

Answer selected by hochstibe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants