devilry / devilry-django

Devilry project main repository
http://devilry.org
BSD 3-Clause "New" or "Revised" License
51 stars 24 forks source link

`CommentFile` deletion error inconsistency #1308

Open torgeirl opened 3 months ago

torgeirl commented 3 months ago

With v6.3.3, attempting to delete one or more Comment Files from /djangoadmin/devilry_comment/commentfile/ yields a HTTP 500:

NotImplementedError Bulk deletion not supported. Delete each CommentFile instead. This is because multiple CommentFiles can point to the same FileField.path, and this check is handled in a pre_delete signal.

Deleting the comment from /djangoadmin/devilry_comment/comment/, and will delete the referred Comment File as well.