#16567: Feature Req:"Soft Delete"
-------------------------+-------------------------------
Reporter: yegle | Owner: nobody
Type: New feature | Status: new
Milestone: | Component: Uncategorized
Version: 1.3 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------+-------------------------------
It's very common that when we delete items from database, we just mark it
as deleted and do a cleanup occasionally. I don't know what the proper
name is but I usually call it "soft delete".
Now if you want to add "soft delete" feature in django, you need to:
1. Override model.delete()
2. Override QuerySet.delete() since bulk delete doesn't call
model.delete()
3. Override model.Manager.get_query_set() if you want to "hide" deleted
items
Well, I think this should be done by django itself :-)
--
Ticket URL: <https://code.djangoproject.com/ticket/16567>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.