Since the pre_moderation signal was accessing the self.content_obect.__class__, the object got populated from DB and was not getting fetched again after moderation, for the post_moderation signal.
This was leading the post_moderation signal sending the pre-moderation state of the content object.
Coverage increased (+0.14%) when pulling 8e3a8af96d6d992a8c830d17f64d53c773579920 on sahilgupta:fix_moderation_signal into b357fec29011c7c973a9f75722caef219e5d817f on dominno:master.
Since the
pre_moderation
signal was accessing theself.content_obect.__class__
, the object got populated from DB and was not getting fetched again after moderation, for thepost_moderation
signal. This was leading thepost_moderation
signal sending thepre-moderation
state of thecontent object
.This fixes Issue #88