Django removing object from ManyToMany relationship

my_mood.interests.remove(my_interest)

Django’s Relations Docs

Note: you might have to get an instance of my_mood and my_interest using Django’s QuerySet API before you can execute this code.

Leave a Comment