A judgment by consent may be entered when there is consent by all parties made after the filing of the petition either in open court or by a written consent filed with the court and signed by each party or the attorney for such party.