Django update one field by DeleteView

23 views
Skip to first unread message

Rupam Hazra

unread,
Dec 11, 2018, 7:31:22 AM12/11/18
to Django users
Hi all,

I have project model.one functionality is when a project delete only is_deleted field modified by 1 so that in reality it does not delete from database just the status changed.That means i want to update the is_deleted field without any form.




Sidnei Pereira

unread,
Dec 11, 2018, 9:01:24 AM12/11/18
to Django users
It's is usally called safe delete or soft delete or even logical delete. There are some approach to that on Django with pros and cons, I suggest you to research a little bit to see whats is best for you.

Some material on the subject

Derek

unread,
Dec 12, 2018, 12:31:54 AM12/12/18
to Django users
Reply all
Reply to author
Forward
0 new messages