Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)