Django: save multiple object signal once
I need some help with sending email when an order is placed. To illustrate the problem, following is the abstract code: class Order(models.Model): user = models.ForeignKey(User) class OrderItem(modes.Model): order = models.ForeignKey(Order, related_name='items') item = models.CharField(max_length=255) unit_price = models.DecimalField() qty = models.IntegerField() item_amount = models.DecimalField() def email_order_on_save(sender, instance, **kwargs): # Need order.items.all() here pass post_save.connect(email_order_on_save, sender=Order) Most of the problems on SO and google seem to deal with