def METHOD_NAME(self, offers_before, offers_after):
    offer_messages = []
    for offer_id in set(offers_after).difference(offers_before):
        offer = offers_after[offer_id]
        msg = render_to_string(self.offer_gained_template_name, {"offer": offer})
        offer_messages.append((messages.SUCCESS, msg))
    return offer_messages