honzakral / django-threadedcomments

django-threadedcomments is a simple yet flexible threaded commenting system for Django.
BSD 3-Clause "New" or "Revised" License
623 stars 164 forks source link

Erasing comment in django admin causes deletion of parent without warning #14

Closed myneur closed 14 years ago

myneur commented 14 years ago

when the last comment on a level is erased (there are no older siblings), all comments from parent with last_child ForeignKey pointing on it are erased too; without warning.

myneur commented 14 years ago

sory, I've meant no newer siblings. Simply when there is threadedcomment.last_child of any parent comment pointing on child comment which is being erased, all comments from that parent are erased together with the one beeing erased.

honzakral commented 14 years ago

You shouldn't delete anything without knowing what you are doing. If you want to get rid of a comment, use the moderation mechanism. (is_public, is_removed) and reflect that in your templates.

myneur commented 14 years ago

Editor in admin knows exactly what he is doing: he wants to delete last comment because it is totally nonsense and there is no reason to let it be in admin. Majority of all comments are definitely moderated with moderation mechanism, but sometimes the posibility of comment deletion by moderator is usefull.