Top "M2m" questions

A type of relationship between entities of types A and B which associates a list of entities of type B to an entity of type A and vice versa.

Direct assignment to the forward side of a many-to-many set is prohibited. Use emails_for_help.set() instead

I am new to Django and didn't find any reference regarding this issue. I am getting this error when i …

python django django-orm m2m
django Cannot set values on a ManyToManyField which specifies an intermediary model. Use Manager instead

i am working on saving on the same form two tables - having a m2m relation. I don't succeed, …

django forms m2m
Django: Retrieving IDs of manyToMany fields quickly

I have the following model schema in Django (with Postgres). class A(Models.model): related = models.ManyToManyField("self", null=True) …

python database django postgresql m2m
Django 1.8 - Intermediary Many-to-Many-Through Relationship - What is the consequence of where 'ManytoManyField' is used?

An example Many-to-Many through relationship in Django: class First(models.Model): seconds = models.ManyToManyField(Second, through='Middle') class Middle(models.…

django many-to-many relationship django-orm m2m
Using Django's m2m_changed to modify what is being saved pre_add

I am not very familiar with Django's signals and could use some help. How do I modified the pk_set …

python django django-signals django-orm m2m
Django m2m form save " through " table

I'm having trouble in saving a m2m data, containing a 'through' class table. I want to save all selected …

django forms m2m
Copy all fields of a django model instance

ok i think this is very basic, but since I am new to Django I don't know how to handle …

django copy models m2m
How to get the related_name of a many-to-many-field?

I'm trying to get the related_name of a many-to-many-field. The m2m-field is located betweeen the models "Group" and "…

python django django-models many-to-many m2m