#16567: Feature Req:"Soft Delete"
-------------------------------------+-------------------------------------
               Reporter:  yegle      |          Owner:  nobody
                   Type:  New        |         Status:  new
  feature                            |      Component:  Database layer
              Milestone:             |  (models, ORM)
                Version:  1.3        |       Severity:  Normal
             Resolution:             |       Keywords:
           Triage Stage:  Design     |      Has patch:  0
  decision needed                    |    Needs tests:  0
    Needs documentation:  0          |  Easy pickings:  0
Patch needs improvement:  0          |
                  UI/UX:  0          |
-------------------------------------+-------------------------------------

Comment (by rvanhoepen):

 What you really should do to "soft delete", is to just do an update query,
 and then do a select with a filter to show objects that are not "deleted".

 The only problem with your feature is backwards compatibility.
 I also don't think this should be inside the delete function, since human
 error can result into unwanted behavior.

 A simple update query like:
 Entry.objects.filter({conditions go here}).update(deleted=1),
 will suffice.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16567#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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to