def post_save_quoteservice(instance): if not hasattr(instance, 'avoid_all'): with transaction.atomic(savepoint=False): BookingServices.update_quoteservice_paxvariants_amounts(instance) if instance.quote_package: BookingServices.update_quotepackage_service_pax_variants_amounts(instance) BookingServices.update_quotepackage(instance) BookingServices.update_quote(instance)
def post_save_quotepackage(sender, instance, **kwargs): if not hasattr(instance, 'avoid_all'): with transaction.atomic(savepoint=False): BookingServices.update_quoteservice_paxvariants_amounts(instance) BookingServices.sync_quotepackage_services(instance) BookingServices.update_quote(instance)