1👍
✅
It’s not possible to add a ManytoManyField
in create
because ManyToManyField
s involve intermediate tables for database queries.
You’ll need two queries for it:
order=Order.objects.create(customer=customer, date=now, number=number)
order.design.add(design)
Source:stackexchange.com