dominno / django-moderation

django-moderation is reusable application for Django framework, that allows to moderate any model objects.
BSD 3-Clause "New" or "Revised" License
269 stars 90 forks source link

[Model] matching query does not exist #194

Closed said2890 closed 3 years ago

said2890 commented 3 years ago

When keeping a history of a moderated object, if a previous pending or rejected version contains a foreign key to a deleted object, the following error is thrown: [Model] matching query does not exist.

In my case I had a category assigned to news (moderated), then I changed the category and deleted the previous one. Now when I try to get versions for that news, it throws the aforementioned error.

It would be great to at least be able to delete the broken moderated objects (versions)