Re: Mark as deleted instead of actually deleting in DeleteView

2017-09-21 Thread James Schneider
On Sep 21, 2017 2:39 AM, "Rakhee Menon" wrote: Hello Everyone , Can anyone tell me how to write views where, when clicked on delete button the data shouldn't get deleted only the flag should turn 0 Just use a standard update view that toggles the field that you are using for the object status.

Re: Mark as deleted instead of actually deleting in DeleteView

2017-09-21 Thread Fabio C. Barrionuevo da Luz
try use : SoftDeletableModel and SoftDeletableManager of django-model-utils https://django-model-utils.readthedocs.io/en/latest/models.html#softdeletablemodel https://django-model-utils.readthedocs.io/en/latest/managers.html#softdeletablemanager https://github.com/jazzband/django-model-utils/blob

Mark as deleted instead of actually deleting in DeleteView

2017-09-21 Thread Rakhee Menon
Hello Everyone , Can anyone tell me how to write views where, when clicked on delete button the data shouldn't get deleted only the flag should turn 0 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece