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.
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
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
3 matches
Mail list logo