#32011: Error when calling add() on ManyRelatedManager with intermediary model -------------------------------------+------------------------------------- Reporter: Philipp Maino | Owner: nobody Type: Bug | Status: closed Component: Documentation | Version: 2.1 Severity: Normal | Resolution: invalid Keywords: ManyToMany, | Triage Stage: ManyRelatedManager | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Philipp Maino): Replying to [comment:1 felixxm]: > `through_defaults` was added in Django 2.2, please use [https://docs.djangoproject.com/en/2.1/ documentation] for the version you're using. Hi @felixxm, I'm very happy if that's the problem at hand. I scaned over the docs for 2.1 and didn't this difference: **3.1** You can also use **add()**, **create()**, or **set()** to create relationships, as long as you specify through_defaults for any required fields **2.1** Unlike normal many-to-many fields, you can’t use** add()**,** create()**, or** set()** to create relationships: -- Ticket URL: <https://code.djangoproject.com/ticket/32011#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.c49bfd1b2d09ee3c3a57923c1a139bb9%40djangoproject.com.