#32045: Removing item from GenericRelation deletes all items.
-------------------------------------+-------------------------------------
Reporter: chgad | Owner: Asjad
| Ahmed Khan
Type: Bug | Status: closed
Component: | Version: 3.0
contrib.contenttypes |
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Jacob Walls):
From the documentation on `clear()` directly below the docs linked in the
issue description:
"Note this doesn’t delete the related objects – it just disassociates
them."
It sounds like that's what you want, which is why I asked if you wanted
`clear()` instead of `remove()`. If `clear()` gives you the behavior you
want, I suggest this be accepted as a documentation ticket to clarify that
`remove()` also removes from the database.
--
Ticket URL: <https://code.djangoproject.com/ticket/32045#comment:8>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.abddfef347ab1164a23cf6ef6609352d%40djangoproject.com.