[Django] #28063: Allow to use add() with ManyToManyField which specifies an intermediary model

13 views
Skip to first unread message

Django

unread,
Apr 10, 2017, 10:51:41 AM4/10/17
to django-...@googlegroups.com
#28063: Allow to use add() with ManyToManyField which specifies an intermediary
model
-------------------------------------+-------------------------------------
Reporter: Victor | Owner: nobody
Porton |
Type: New | Status: new
feature |
Component: Database | Version: 1.11
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
> AttributeError: Cannot use add() on a ManyToManyField which specifies an
intermediary model. Use post_app.PostInTimeline's Manager instead.

Please make it possible if the intermediary model has only fields with a
default value (or null), except of the (two) foreign keys of two linked
models.

--
Ticket URL: <https://code.djangoproject.com/ticket/28063>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 10, 2017, 11:00:43 AM4/10/17
to django-...@googlegroups.com
#28063: Allow to use add() with ManyToManyField which specifies an intermediary
model
-------------------------------------+-------------------------------------
Reporter: Victor Porton | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: 1.11
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

* status: new => closed
* resolution: => duplicate


Comment:

Duplicate of #9475.

--
Ticket URL: <https://code.djangoproject.com/ticket/28063#comment:1>

Reply all
Reply to author
Forward
0 new messages