django-softdelete icon indicating copy to clipboard operation
django-softdelete copied to clipboard

Deletes ALL items in a table if it does not extend model, why?

Open glynjackson opened this issue 9 years ago • 2 comments

Why do this? https://github.com/scoursen/django-softdelete/blob/master/softdelete/models.py#L176

This is dangerous as it appears to delete ALL items in a table if it does not extend the delete model. What is the reason behind this?

glynjackson avatar Sep 30 '16 08:09 glynjackson

All my related items are deleted, but so are all other items in the table what are not related. The problem appears to be on that line I think.

glynjackson avatar Sep 30 '16 08:09 glynjackson

Can you write a test for this?

blag avatar May 09 '17 22:05 blag