def save(self, *args, **kwargs): # if I'm modifyed and not created if Recommendation.objects.filter(pk=self.pk): clean_all_trends() super(Recommendation, self).save(*args, **kwargs)
def save(self, *args, **kwargs): # if I'm modifyed and not created if Proposal.objects.filter(id=self.id): clean_all_trends() super(Proposal, self).save(*args, **kwargs)