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 91 forks source link

Throw an exception if there's multiple moderations for the same object. #116

Closed qris closed 9 years ago

qris commented 9 years ago

There's no sensible default behaviour, so you'll need to override filter_moderated_objects to define what bevahiour you want. What if one moderation approves an object, and the other rejects it? What if one is still pending?

Either way, the old code simply picked one moderation at random, and that's just broken.

dominno commented 9 years ago

Please rebase

coveralls commented 9 years ago

Coverage Status

Changes Unknown when pulling 20ee48cd58c19be466ab6fc0d569da98f8efe710 on aptivate:improve_multiple_mods_handling into \ on dominno:master**.