python - Django Soft Delete -
since django's default user model uses is_active flag soft deletes, make sense name field is_active every other model needs soft deleted?
is_deleted seems far more common, seems is_active keeps things consistent, better, right?
i suppose it's more of preference. consistency's sake, is_active
better. there might cases is_deleted
might make more sense/feel more natural developer. it's worth, had both fields is_active
, is_deleted
in 1 of our projects. used is_deleted
denote soft deletes , is_active
mean whether or not model still actively participate/engage system.
Comments
Post a Comment