Re: Admin is still annoying regarding model save(), and model post_save signals.

2016-01-12 Thread Luis Masuelli
Notes: This is only annoying when the logic involves many2many fields. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.

Admin is still annoying regarding model save(), and model post_save signals.

2016-01-12 Thread Luis Masuelli
If you want to perform additional logic when you save your model... class MyModel(models.Model): #... def save(self, *args, **kwargs): self.a_rel_model_set.add(O) super(MyModel, self).save(*args, **kwargs) self.another_rel_model_set.add(O2) Or similar login in