[Answered ]-Django how to delete from ManyToManyField with extra field?

2👍

You can remove the instance on the intermediary model.

From the example provided in djangoproject:

m_qs = Membership.objects.filter(person=person, group=group) #or some other logic to filter
try:
    m = m_qs.get() #assuming queryset returns only 1 element
    m.delete()
except:
    pass #handle more gracefully 

Leave a comment